Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[erix]: I would have thought that alignment is an important optimizing consideration for most (large) software -- I know it is for postgres...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-04-25 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.