Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: IO Socket buffer flushing

by eric256 (Parson)
on Jan 29, 2010 at 16:55 UTC ( [id://820365]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #server
    ...
        print "Recieved 2 '$buf'\n";
        $new_sock->say("12");
    }
    
  2. or download this
    #!/usr/bin/perl
    #client
    ...
    $buf = $sock->getline();
    chomp($buf);
    print "Bytes 2 = '$buf'\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found