|
Dernière réponse | |
---|---|
Sujet : [C] Creer un serveur ftp | |
verdoux | extrait de "man accept": If no pending connections are present on the queue, and
the socket is not marked as non-blocking, accept blocks the caller until a connection is present. If the socket is marked non-blocking and no pending connections are pre- sent on the queue, accept returns EAGAIN. In order to be notified of incoming connections on a socket, you can use select(2) or poll(2). A readable event will be delivered when a new connection is attempted and you may then call accept to get a socket for that con- nection. Alternatively, you can set the socket to deliver SIGIO when activity occurs on a socket; see socket(7) for details. |
Vue Rapide de la discussion |
---|