Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Socket recv?

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


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

send and recv are calls that can only be used in a connected-state socket (ie TCP).

Replies are listed 'Best First'.
Re^3: Socket recv?
by ikegami (Patriarch) on Mar 11, 2011 at 22:02 UTC

    You have to use send for unconnected sockets. Saying it can't be used for unconnected sockets is nonsense. The system would have no idea where to send the data to.

    Furthermore, UDP sockets can be connected. Connecting a UDP socket specifies the default host+port for sending, and it specifies the only host+port from which it will receive.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-16 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found