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

Re^3: Is it possible to create a socket client and server that can send information back and forth using IO::Socket?

by weismat (Friar)
on Oct 26, 2009 at 17:33 UTC ( #803317=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Is it possible to create a socket client and server that can send information back and forth using IO::Socket?
in thread Is it possible to create a socket client and server that can send information back and forth using IO::Socket?

Two obvious problems:
- Your client does not flush the buffer - thus nothing is sent, either call directly or check the autoflush property.
- Your server can handle only client and needs to flush as well.


Comment on Re^3: Is it possible to create a socket client and server that can send information back and forth using IO::Socket?
Replies are listed 'Best First'.
Re^4: Is it possible to create a socket client and server that can send information back and forth using IO::Socket?
by ikegami (Pope) on Oct 26, 2009 at 17:38 UTC
    No, all sockets are being flushed. IO::Socket turns on autoflushing on the underlying handle.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (21)
As of 2015-07-07 21:13 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 (93 votes), past polls