Flushing sockets

Ian Watson ian at hpopd.HP.COM
Wed Mar 7 19:34:28 AEST 1990


I haven't actually used it, but from my man pages, it looks like you can call

setsockopt ( sock, SOL_SOCKET, SO_LINGER, optval, optlen);

with optval a pointer to 'struct linger' (defined in <sys/socket.h>), and
optlen set to its length.  This is on SCO V.3.2.

If this helps, maybe you can return a favour by casting an eye over my
question in this group "HELP!! Sockets ..." (ian at hpopd.HP.COM)

Cheers,
Ian Watson



More information about the Comp.unix.questions mailing list