version 1.85, 2002/01/18 18:14:17 |
version 1.86, 2002/01/24 21:09:25 |
|
|
static int called = 0; |
static int called = 0; |
int lowdelay = IPTOS_LOWDELAY; |
int lowdelay = IPTOS_LOWDELAY; |
int throughput = IPTOS_THROUGHPUT; |
int throughput = IPTOS_THROUGHPUT; |
int on = 1; |
|
|
|
if (called) |
if (called) |
return; |
return; |
|
|
error("setsockopt IPTOS_LOWDELAY: %.100s", |
error("setsockopt IPTOS_LOWDELAY: %.100s", |
strerror(errno)); |
strerror(errno)); |
} |
} |
if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on, |
set_nodelay(connection_in); |
sizeof(on)) < 0) |
|
error("setsockopt TCP_NODELAY: %.100s", strerror(errno)); |
|
} else if (packet_connection_is_ipv4()) { |
} else if (packet_connection_is_ipv4()) { |
/* |
/* |
* Set IP options for a non-interactive connection. Use |
* Set IP options for a non-interactive connection. Use |