void set_send_nodelay(int fd) { int flag = 1; int result = setsockopt(fd,IPPROTO_TCP,TCP_NODELAY,(char *) &flag, sizeof(int)); }