version 1.113, 2004/05/11 19:01:43 |
version 1.114, 2004/06/14 01:44:39 |
|
|
packet_set_nonblocking(void) |
packet_set_nonblocking(void) |
{ |
{ |
/* Set the socket into non-blocking mode. */ |
/* Set the socket into non-blocking mode. */ |
if (fcntl(connection_in, F_SETFL, O_NONBLOCK) < 0) |
set_nonblock(connection_in); |
error("fcntl O_NONBLOCK: %.100s", strerror(errno)); |
|
|
|
if (connection_out != connection_in) { |
if (connection_out != connection_in) |
if (fcntl(connection_out, F_SETFL, O_NONBLOCK) < 0) |
set_nonblock(connection_out); |
error("fcntl O_NONBLOCK: %.100s", strerror(errno)); |
|
} |
|
} |
} |
|
|
/* Returns the socket used for reading. */ |
/* Returns the socket used for reading. */ |