February 2012
Intermediate to advanced
1184 pages
37h 17m
English
socketSOCKET,DOMAIN,TYPE,PROTOCOL
This function opens a socket of the specified kind and attaches
it to filehandle SOCKET.
DOMAIN, TYPE, and
PROTOCOL are specified the same as for
socket(2). If undefined,
SOCKET will be autovivified. Before using
this function, your program should contain the line:
use Socket;
This gives you the proper constants. The function returns true if successful. See the examples in the section Sockets in Chapter 15.
On systems that support a close-on-exec flag on files, the flag
will be set for the newly opened file descriptor, as determined by the
value of $^F. See the $^F ($SYSTEM_FD_MAX) variable in Chapter 25.
Read now
Unlock full access