#include <arpa/inet.h>
#include <sys/un.h>
#include <netinet/in.h>
+#include <netinet/tcp.h>
#include <errno.h>
#include <dlog.h>
DbgPrint("sndbuf: %d\n", sndbuf);
}
+ if (setsockopt(handle, IPPROTO_IP, TCP_NODELAY, &on, sizeof(on)) < 0) {
+ ErrPrint("Failed to change rcvbuf size: %s\n", strerror(errno));
+ } else {
+ DbgPrint("TCP_NODELAY: %d\n", on);
+ }
+
return handle;
}
DbgPrint("sndbuf: %d\n", sndbuf);
}
+ if (setsockopt(handle, IPPROTO_IP, TCP_NODELAY, &on, sizeof(on)) < 0) {
+ ErrPrint("Failed to change rcvbuf size: %s\n", strerror(errno));
+ } else {
+ DbgPrint("TCP_NODELAY: %d\n", on);
+ }
+
return handle;
}