Accepts a new socket. If newsocket is an uninitialized scalar variable, a new, unique handle is automatically created.
Binds the name to the socket.
Connects a socket to the named peer.
Returns the socket address of the other end of the socket.
Returns the name of the socket.
Returns the socket options.
Starts listening on the specified socket, allowing queuesize connections.
, $
var,
length,
flagsReceives a message of length characters on the socket and puts it into scalar variable $
var.
,
to ]Sends a message on the socket.
Sets the requested socket option.
Shuts the socket down.
Creates a socket in the domain with the given type and protocol. If socket is an uninitialized scalar variable, a new, unique handle is created.
,
socket2, domain, type, protocolWorks the same as socket, but creates a pair of bidirectional sockets.