411 REFERENCE · Wikibooks
Perl Programming/Keywords/socket
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl sleep socketpair Keywords
The socket keyword
The socket function opens a socket of the specified kind and attaches it to filehandle SOCKET. The DOMAIN, TYPE, and PROTOCOL are specified in the same way as for syscall.
Syntax
socket SOCKET, DOMAIN, TYPE, PROTOCOL
Examples
use Socket;
$proto = getprotobyname("tcp");
socket(SOCK, PF_INET, SOCK_STREAM, $proto) || die "socket: $!";
Examples
syscall
Perl sleep socketpair Keywords