Non-blocking Accept in C

From: Larry Griffin (
Date: Mon Jan 10 2000 - 18:53:31 EST

Resident Network Geniuses!

I've changed how an data collection server of mine deals with a
customers client. This change requires that I don't hang around after
listen if there are no connection requests to accept. My networking
books by Rago and Stevens hint at what I should do but as soon as they
bring the subject up then talk about the client only. None of my test
programs (server side) seem to know when there is a connection request


bind or bind or bind
select set non_blocking set non_blocking
accept accept select
return restore fcntl accept
                        return restore fcntl

Can anyone show or point me to an example that works?
Larry G.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to

This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:29 EST