Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: IO::Select and sockets

by ikegami (Pope)
on Dec 29, 2005 at 20:40 UTC ( #519868=note: print w/ replies, xml ) Need Help??


in reply to Re^3: IO::Select and sockets
in thread IO::Select and sockets

Any servers that handles mutliple connections must

  • Wait to read incomming connections from the server socket.
  • Wait to read incomming requests from each client socket from which a request hasn't been obtained.
  • Wait to write reponses to each client socket from which a request has been obtained.
  • Wait for errors.

All of these can occur at the same time, which is why can_* are insufficient, and select is desired on the server side.

 

Any clients that handles mutliple connections must

  • Wait to write requests to every server socket to which a request has not been sent.
  • Wait to read incomming responses from each server socket to which a request has been sent.
  • Wait for errors.

All of these can occur at the same time, which is why can_* are insufficient, and select is desired on the client side.


Comment on Re^4: IO::Select and sockets
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://519868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-09-19 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (138 votes), past polls