void reconf(int sck)
{
int r = 0; long o = 1; socklen_t ol = sizeof(long);
r = setsockopt(sck, IPPROTO_TCP, TCP_NODELAY, (char*)&o, ol);
if (r == -1)
printf("setsockopt(nodelay)");
else
printf("socket shorten delay ok.\n");
void reconf(int sck){ int r = 0; long o = 1; socklen_t ol = sizeof(long); r = setsockopt(sck, IPPROTO_TCP, TCP_NODELAY, (char*)&o, ol); if (r == -1) printf("setsockopt(nodelay)"); else