Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-02-23 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (350 votes). Check out past polls.