How the connect() call is non-blocking

SRINIVASU V V S srinivvs at future.futsoft.com
Wed Feb 23 04:41:28 UTC 2000


hi all,
	i have seen the code in which the connect() call in named is made 
nonblocking... It is called something like evConnect()
How will the named (in a recursive service using TCP) know that the 
connection is established when the connect() is called in non-blocking 
mode..

	generally speaking, if u have multiple sockets..( both TCP and UDP) to 
listen on.. and u are not allowed to block on one socket calling connect.. 
then what should the algorithm be like..after connecting we can use select 
for receive and sending..

plz clear my doubt...

thanx in advance
Srini



More information about the bind-users mailing list