Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How to do simultaneous reads and writes to/from a socket?

by sonofason (Sexton)
on May 10, 2006 at 14:00 UTC ( #548462=note: print w/ replies, xml ) Need Help??


in reply to Re: How to do simultaneous reads and writes to/from a socket?
in thread How to do simultaneous reads and writes to/from a socket?

jesuashok: Perhaps I should have mentioned earlier that I am working under Windows. Apparently, doing non-blocking socket IO under Windows is a little problematic, as discussed here. The polling solution does work well though and hopefully won't consume too much resources if I sleep for a short time (since I want to act immediately on incoming data) in between polls.

merlyn: I will take a look at POE and see how it can help me.

MonkE: I do understand that much more is needed for the server, but the code I posted was just a simplified exerpt from the client program. Thanks though!

Many thanks!
sonofason


Comment on Re^2: How to do simultaneous reads and writes to/from a socket?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-07-31 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls