[comp.unix.questions] state of a socket

tstevens@lennon.austek.oz (Tod Stevens) (03/13/90)

After setting up a socket for asynchronous transfers, and assigning a
io handler to SIGIO, I need the io handler to interpret the socket
state to decide whether to read from the socket or whether to notify
other routines that the socket is disconnecting, etc. How do I get
access to this information? The so_state field, in the struct socket,
is what I would like, but how do I get it? 

Regards,
	Tod.


Tod Stevens
Austek Microsystems Pty. Ltd.
Technology Park
Adelaide, SA 5095

ACSnet:	tstevens@austek.oz	X25:	psi%0505282620000::tstevens
ARPA:	tstevens@austek.oz.au	CSNET:	tstevens@austek.oz.au
EAN:	tstevens@austek.oz.au	JUNET:	tstevens@austek.oz.au
UUCP:	uunet.uu.net!munnari!austek.oz.au!tstevens


 _--_|\
/      \
\_.--._/
      v