Searched refs:MAX_DATA_SIZE (Results 1 – 1 of 1) sorted by relevance
66 #define MAX_DATA_SIZE 1000 macro539 char header[HEADER_SIZE + MAX_DATA_SIZE]; in socketTransport_writePacket()573 if (data_len <= MAX_DATA_SIZE) { in socketTransport_writePacket()580 memcpy(header + HEADER_SIZE, data, MAX_DATA_SIZE); in socketTransport_writePacket()581 if (send_fully(socketFD, (char *)&header, HEADER_SIZE + MAX_DATA_SIZE) != in socketTransport_writePacket()582 HEADER_SIZE + MAX_DATA_SIZE) { in socketTransport_writePacket()586 if (send_fully(socketFD, (char *)data + MAX_DATA_SIZE, in socketTransport_writePacket()587 data_len - MAX_DATA_SIZE) != data_len - MAX_DATA_SIZE) { in socketTransport_writePacket()