> The total code to do this:
>
> if ( setsockopt( fd, SOL_SOCKET, SO_KEEPALIVE, (char *) &x,
> sizeof(x) ) < 0 )
> {
> perror( "Init_socket: SO_KEEPALIVE" );
> close(fd);
> exit( 1 );
> }What should x be set to? And are there any other issues involved? When I did this, the MUD began to occassionally hang up when close()ing descriptors. --Palrich, admittedly doesn't know much about this stuff.

