Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: Bidirectional Socket, Blocking

by BrowserUk (Pope)
on Oct 16, 2012 at 13:49 UTC ( #999338=note: print w/replies, xml ) Need Help??

in reply to Re^2: Bidirectional Socket, Blocking
in thread Bidirectional Socket, Blocking

I tried all sort of ways using unblocking reads, but to no avail.

If you posted one of your attempts, we may be able to sort that out for you.

If you know an example where this works,

The classic method of performing non-blocking IO is to use select. For examples, scan a few of these hits IO::Socket IO::Select.

I now resort to a rather clumsy way, by opening two ports, using one to send, the other to receive. This works, but it does not seem to be too clever

If it is good enough for the FTP-family of protocols, it is good enough for me.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Replies are listed 'Best First'.
Re^4: Bidirectional Socket, Blocking
by DanielPHuber (Initiate) on Oct 16, 2012 at 17:13 UTC
    Hi Neil,

    not even the examples from:

    work. Could it be that it has something to do with Windows?

    cheers, Daniel

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999338]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-06-20 06:00 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.