Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-08-22 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (146 votes), past polls