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

Re: IO::Socket::INET in worker threads

by weismat (Friar)
on Feb 14, 2009 at 06:08 UTC ( #743777=note: print w/replies, xml ) Need Help??

in reply to IO::Socket::INET in worker threads

I agree with BrowserUK, that it would be nice to have more details.
Nevertheless I guess you need to try a non-blocking read from Thread::Queue via the dequeue_nb function.
For non-blocking receive from sockets you may look at recv in socket programming.

Replies are listed 'Best First'.
Re^2: IO::Socket::INET in worker threads
by Proclus (Beadle) on Feb 14, 2009 at 11:01 UTC
    Thanks guys, sorry for not providing enough info, i'm not a networking expert so choosing the right words is difficult.

    weismat, I can maybe ask a better question following your advice.

    How can I implement a non-blocking receive from sockets with threads?

    Also I'm now looking into how I can use select for the same purpose.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://743777]
[erix]: (I used http://afstandmete )
LanX The stations of Limburg Süd and Montabaur, which are approximately 20 km apart, ...
[LanX]: teh route I get from gmaps is 1662 km long and is crossing the Swiss Alps (mounting 2400 m) ... I wouldn't try this in December...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-12-13 15:32 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (369 votes). Check out past polls.