Lines Matching refs:Socket
1 package Socket;
10 C<Socket> - networking constants and support functions
14 C<Socket> a low-level module used by, among other things, the L<IO::Socket>
17 C<IO::Socket> or similar instead.
19 use Socket qw(PF_INET SOCK_STREAM pack_sockaddr_in inet_aton);
45 C<use Socket> line, the default exports are not automatically imported. It is
55 use Socket qw(:DEFAULT :crlf);
87 Socket type constants to use as the second argument to socket(), or the value
99 Socket option level constant for setsockopt() and getsockopt().
103 Socket option name constants for setsockopt() and getsockopt() at the
108 Socket option name constants for IPv4 socket options at the C<IPPROTO_IP>
113 Socket option value constants for C<IP_MTU_DISCOVER> socket option.
117 Socket option value constants for C<IP_TOS> socket option.
143 Socket option name constants for TCP socket options at the C<IPPROTO_TCP>
156 Socket option name constants for IPv6 socket options at the C<IPPROTO_IPV6>
567 use IO::Socket;
568 use Socket qw(SOCK_STREAM getaddrinfo);
577 my $candidate = IO::Socket->new();
601 In practice this logic is better performed by L<IO::Socket::IP>.
609 use IO::Socket::IP;
610 use Socket qw(getnameinfo);
612 my $server = IO::Socket::IP->new(LocalPort => 12345, Listen => 1) or
626 use Socket qw(getnameinfo NIx_NOSERV);
633 In practice this logic is better performed by L<IO::Socket::IP>.
641 use Socket qw(:addrinfo SOCK_RAW);
668 use IO::Socket::INET;
669 use Socket qw(SOL_SOCKET SO_RCVBUF IPPROTO_IP IP_TTL);
671 my $socket = IO::Socket::INET->new(LocalPort => 0, Proto => 'udp')
682 As a convenience, L<IO::Socket>'s setsockopt() method will convert a number
833 # The definitions in Socket.pm and Socket.xs must match
892 # reduces the size of %Socket:: by about 12K
893 delete $Socket::{fake_getaddrinfo};
894 delete $Socket::{fake_getnameinfo};
982 $family ||= Socket::AF_INET(); # 0 == AF_UNSPEC, which we want too
983 $family == Socket::AF_INET() or return fake_makeerr( EAI_FAMILY() );
1002 croak "Socket::getaddrinfo() does not support IDN";
1018 $addrs[0] = $flag_passive ? Socket::inet_aton( "0.0.0.0" )
1019 : Socket::inet_aton( "127.0.0.1" );
1033 foreach my $this_socktype ( Socket::SOCK_STREAM(), Socket::SOCK_DGRAM(), Socket::SOCK_RAW() ) {
1037 $this_socktype == Socket::SOCK_STREAM() and $this_protname = "tcp";
1038 $this_socktype == Socket::SOCK_DGRAM() and $this_protname = "udp";
1067 addr => Socket::pack_sockaddr_in( $port, $addr ),
1086 eval { ( $port, $inetaddr ) = Socket::unpack_sockaddr_in( $addr ) }
1089 my $family = Socket::AF_INET();
1100 croak "Socket::getnameinfo() does not support IDN";
1111 $node = Socket::inet_ntoa( $inetaddr );
1117 $node = Socket::inet_ntoa( $inetaddr );