Non blocking connect using streams/TLI?

Dave Brower daveb at gonzo.UUCP
Sun Dec 18 04:17:46 AEST 1988


On 4.xBSD, one can do a connect(2) call on a socket that has been set
no-delay, and the operation will return.  But you can't do anything on
the socket until a select on the fd comes alive.

Is there some similar method one can use to write a non-blocking
streams/TLI based connection routine?  

(This is of interest in, say a window system where select is the heart
of the event loop.  You'd want to make sure that other events coming in
won't be blocked out by a connect request to something on a slow
network)

Thanks,
-dB
-- 
If life was like the movies, the music would match the picture.

{sun,mtxinu,hoptoad}!rtech!gonzo!daveb		daveb at gonzo.uucp



More information about the Comp.unix.wizards mailing list