IO::Socket(3p) Perl Programmers Reference Guide IO::Socket(3p)
IO::Socket(3p) Perl Programmers Reference Guide IO::Socket(3p) # IO::Socket(3p) Perl Programmers Reference Guide IO::Socket(3p) NNAAMMEE # IO::Socket - Object interface to socket communications SSYYNNOOPPSSIISS # use strict; use warnings; use IO::Socket qw(AF_INET AF_UNIX); # create a new AF_INET socket my $sock = IO::Socket->new(Domain => AF_INET); # which is the same as $sock = IO::Socket::INET->new(); # create a new AF_UNIX socket $sock = IO::Socket->new(Domain => AF_UNIX); # which is the same as $sock = IO::Socket::UNIX->new(); DDEESSCCRRIIPPTTIIOONN # "IO::Socket" provides an object-oriented, IO::Handle-based interface to creating and using sockets via Socket, which provides a near one-to-one interface to the C socket library. ...