ucspi-ssl  0.99e
TLS encryption for IPv6 communication
socket_delay.c
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <sys/param.h>
3 #include <sys/socket.h>
4 #include <netinet/in.h>
5 #include "socket.h"
6 
7 int socket_tcpnodelay(int s)
8 {
9  int opt = 1;
10  return setsockopt(s,IPPROTO_TCP,1,&opt,sizeof opt); /* 1 == TCP_NODELAY */
11 }
int socket_tcpnodelay(int s)
Definition: socket_delay.c:7