[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] Sockets




Nah, the operation is on the file descriptor itself, not on the socket
(since its lower level than sockets). Anyways, for anyone that might have
a vague intrest, you check the flags from:
	
	fcntl(sockid, F_GETFL);

If O_NONBLOCK is set, the socket is in non blocking mode.

Thanks,
Shaun


On Mon, 1 May 2000, Greg Kopff wrote:

> >Ok, this is probably a simple one, how can you tell if a socket is in non 
> >blocking mode? (i.e, ioctl FIONBIO has been tun on it).
> 
> Try looking at man 3n getsockopt and setsockopt
> 
> Regards,
> 
> Greg Kopff.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> --
> You are subscribed to the progsoc mailing list. To unsubscribe, send a
> message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
> If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.
> 
> This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>
> 

--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>