Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: recv in socket programming

by weismat (Friar)
on Feb 12, 2009 at 12:33 UTC ( #743288=note: print w/ replies, xml ) Need Help??


in reply to recv in socket programming

You may use IO::Select before the recv to determine if yoy can read from the socket.
Example:

my $select=new IO::Select(); $select->add($socket); if ($select->can_read($timeout)


Comment on Re: recv in socket programming
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-02-06 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (229 votes), past polls