programming-examples/perl/Network/Perl Modules for Networking with Sockets.pl
2019-11-15 12:59:38 +01:00

10 lines
577 B
Perl

Option Value
Listen Size of the incoming listen queue. Normally set to SOMAXCONN.
LocalAddr IP address or hostname for a server socket, optional.
LocalPort Port number for a server socket to listen on.
PeerAddr IP address or hostname of the server, for client sockets.
PeerPort Port number of the server, for client sockets.
Proto Protocol to use, usually tcp or udp.
Reuse Set to 1 for servers.
Timeout Sets network timeouts.
Type Type of socket, normally SOCK_STREAM (TCP) or SOCK_DGRAM (UDP).