Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Socket recv?

by Illuminatus (Curate)
on Mar 11, 2011 at 23:57 UTC ( [id://892768]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Socket recv?
in thread Socket recv?

The return values are different from the values the parameters are set to. For example, if you look here, you will see that
$socket->send ("example"\n");
really should be:
my $retval = $socket->send("example\n"); # make sure $retval is defined, and contains the length of the strin +g
ditto for the recv call.

As for closing the socket, I understand that *you* are not closing it, but there are 2 sides to every connection :).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found