411 REFERENCE · Wikibooks
Perl Programming/Keywords/socketpair
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl socket sort Keywords
The socketpair keyword
The socketpair function creates an unnamed pair of sockets in the specified domain, of the specified type. The parametres DOMAIN, TYPE, and PROTOCOL are specified the same as for the syscall of the same name. If unimplented, an exception is raised, or returns true on success.
Syntax
socket SOCKET1, SOCKET2, DOMAIN, TYPE, PROTOCOL
Examples
use Socket;
socketpair(Rdr, Wtr, AF_UNIX, SOCK_STREAM, PF_UNSPEC);
See also
socket
syscall
Perl socket sort Keywords