Go to the documentation of this file.
49 if (len <= 0 || !buff) {
55 faceid = tmpnum&0xffff;
139 unsigned int start,
stop;
148 LOG(
llevError,
"send_image_sums: bogus \"requestinfo image_sums\": no range provided.\n");
155 for (cp =
params; *cp !=
'\0'; cp++)
162 || (
stop-start) > 1000
171 for (i = start; i <=
stop; i++) {
175 LOG(
llevError,
"send_image_sums: buffer overflow, rejecting range %d..%d\n", start,
stop);
void SockList_AddInt(SockList *sl, uint32_t data)
void LOG(LogLevel logLevel, const char *format,...)
int get_face_fallback(int faceset, uint16_t imageno)
void SockList_AddString(SockList *sl, const char *data)
void esrv_send_face(socket_struct *ns, const Face *face, int nocache)
face_sets * find_faceset(int id)
static unsigned checksum(const mtar_raw_header_t *rh)
void SockList_Reset(SockList *sl)
AssetsManager * getManager()
void send_face_cmd(char *buff, int len, socket_struct *ns)
size_t SockList_Avail(const SockList *sl)
void SockList_AddShort(SockList *sl, uint16_t data)
void SockList_AddChar(SockList *sl, unsigned char c)
void each(std::function< void(T *)> op)
const Face * get_face_by_id(uint16_t id)
void SockList_Init(SockList *sl)
struct face_sets * fallback
void send_image_info(socket_struct *ns)
void SockList_Term(SockList *sl)
void send_image_sums(socket_struct *ns, char *params)
void SockList_AddData(SockList *sl, const void *data, size_t len)
void SockList_AddLen8Data(SockList *sl, const void *data, size_t len)
void Send_With_Handling(socket_struct *ns, SockList *sl)
void SockList_AddPrintf(SockList *sl, const char *format,...)