Home
last modified time | relevance | path

Searched refs:sock4 (Results 1 – 25 of 176) sorted by relevance

12345678

/dports/net/p5-IO-Socket-Multicast6/IO-Socket-Multicast6-0.03/t/
H A D35mcastsend.t16 my $sock4 = new IO::Socket::Multicast6( Domain => AF_INET );
17 ok( $sock4, "Create IPv4 multicast socket" );
20 $sock4->mcast_dest( '239.255.30.29:2000' );
21 ok( defined $sock4->mcast_dest(), "Combined IPv4 destination address and port" );
23 $sock4->mcast_dest( '239.255.30.29', 2000 );
24 ok( defined $sock4->mcast_dest(), "Separate IPv4 destination address and port" );
26 $sock4->mcast_dest( pack_sockaddr_in(2000,inet_pton(AF_INET, '239.255.30.29')) );
27 ok( defined $sock4->mcast_dest(), "Packed IPv4 destination address and port" );
29 is($sock4->mcast_send( 'Hello World!' ), 12, "Sent 12 bytes on IPv4 socket." );
H A D10ttl.t14 my $sock4 = new IO::Socket::Multicast6( Domain => AF_INET );
15 ok( $sock4, "Create IPv4 multicast socket" );
17 ok( $sock4->mcast_ttl(), "Get TTL value of IPv4 socket" );
18 ok( $sock4->mcast_ttl( 6 ), "Set TTL value of IPv4 socket" );
19 ok( $sock4->mcast_ttl() == 6, "Verify TTL value of IPv4 socket" );
H A D10loopback.t14 my $sock4 = new IO::Socket::Multicast6( Domain => AF_INET );
15 ok( $sock4, "Create IPv4 multicast socket" );
17 ok( defined $sock4->mcast_loopback(), "Get loopback state of IPv4 socket" );
18 ok( defined $sock4->mcast_loopback( 1 ), "Set loopback state of IPv4 socket" );
19 ok( $sock4->mcast_loopback() == 1, "Verify loopback state of IPv4 socket" );
H A D05interface.t34 my $sock4 = new IO::Socket::Multicast6( Domain => AF_INET );
35 ok( $sock4, "Create IPv4 multicast socket" );
37 ok( defined $sock4->mcast_if(), "Get outgoing interface of IPv4 socket" );
38 ok( defined $sock4->mcast_if($iface), "Set outgoing interface of IPv4 socket" );
39 ok( $sock4->mcast_if() eq $iface, "Verify outgoing interface of IPv4 socket" );
H A D20add-drop.t14 my $sock4 = new IO::Socket::Multicast6( Domain => AF_INET );
15 ok( $sock4, "Create IPv4 multicast socket" );
17 is( $sock4->mcast_add('239.255.1.1'), 1, "Join IPv4 multicast group" );
18 is( $sock4->mcast_drop('239.255.1.1'), 1, "Drop IPv4 multicast group" );
/dports/games/freeciv-nox11/freeciv-2.6.6/utility/
H A Dnetintf.c417 struct sockaddr_in *sock4; in net_lookup_service()
422 sock4 = &result->saddr_in4; in net_lookup_service()
427 sock4->sin_port = htons(port); in net_lookup_service()
430 sock4->sin_addr.s_addr = htonl(INADDR_ANY); in net_lookup_service()
437 if (inet_aton(name, &sock4->sin_addr) != 0) { in net_lookup_service()
605 struct sockaddr_in *sock4;
609 sock4 = &tmp.saddr_in4;
611 sock4->sin_family = AF_INET;
612 sock4->sin_port = htons(port);
618 if (sock4->sin_addr.s_addr == INADDR_NONE) {
[all …]
/dports/games/freeciv/freeciv-2.6.6/utility/
H A Dnetintf.c417 struct sockaddr_in *sock4; in net_lookup_service()
422 sock4 = &result->saddr_in4; in net_lookup_service()
427 sock4->sin_port = htons(port); in net_lookup_service()
430 sock4->sin_addr.s_addr = htonl(INADDR_ANY); in net_lookup_service()
437 if (inet_aton(name, &sock4->sin_addr) != 0) { in net_lookup_service()
605 struct sockaddr_in *sock4;
609 sock4 = &tmp.saddr_in4;
611 sock4->sin_family = AF_INET;
612 sock4->sin_port = htons(port);
618 if (sock4->sin_addr.s_addr == INADDR_NONE) {
[all …]
/dports/security/sudo/sudo-1.9.8p2/src/
H A Dnet_ifs.c247 int i, n, sock4, sock6 = -1; in get_net_ifs() local
261 if (sock4 != -1 && ioctl(sock4, SIOCGIFNUM, &n) != -1) { in get_net_ifs()
454 if (sock4 != -1) in get_net_ifs()
455 close(sock4); in get_net_ifs()
490 if (sock4 == -1 && sock6 == -1) in get_net_ifs()
558 sock = sock4; in get_net_ifs()
640 if (sock4 != -1) in get_net_ifs()
641 close(sock4); in get_net_ifs()
786 sock = sock4; in get_net_ifs()
871 if (sock4 != -1) in get_net_ifs()
[all …]
/dports/net/wireguard-go/wireguard-go-0.0.20210424/conn/
H A Dbind_linux.go61 sock4 int member
122 var sock4, sock6 int
150 if sock4 != -1 {
152 bind.sock4 = sock4
181 if bind.sock4 != -1 {
183 bind.sock4,
203 if bind.sock4 != -1 {
216 if bind.sock4 != -1 {
217 err2 = unix.Close(bind.sock4)
218 bind.sock4 = -1
[all …]
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/compat/
H A Dgetifaddrs.c150 int sock4; in getallifaddrs() local
157 if ((sock4 = socket(AF_INET, SOCK_DGRAM, 0)) < 0) in getallifaddrs()
161 close(sock4); in getallifaddrs()
199 s = (ifr_af == AF_INET ? sock4 : sock6); in getallifaddrs()
292 close(sock4); in getallifaddrs()
302 close(sock4); in getallifaddrs()
370 int sock4; in getallifaddrs() local
378 close(sock4); in getallifaddrs()
405 s = (lifr_af == AF_INET ? sock4 : sock6); in getallifaddrs()
470 close(sock4); in getallifaddrs()
[all …]
/dports/net/php73-sockets/php-7.3.33/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0', 58484);
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
H A Dsocket_export_stream-4-win.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0', 58484);
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
/dports/net/php81-sockets/php-8.1.1/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0');
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
H A Dsocket_export_stream-4-win.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0', 0);
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
/dports/net/php74-sockets/php-7.4.27/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0');
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
H A Dsocket_export_stream-4-win.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0', 0);
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
/dports/net/php80-sockets/php-8.0.15/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0');
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
/dports/www/mod_php81/php-8.1.1/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0');
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
/dports/lang/php80/php-8.0.15/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0');
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
/dports/lang/php73/php-7.3.33/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0', 58484);
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
/dports/lang/php74/php-7.4.27/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0');
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
/dports/lang/php81/php-8.1.1/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0');
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
/dports/www/mod_php74/php-7.4.27/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0');
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);
/dports/www/mod_php80/php-8.0.15/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt71 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
72 socket_bind($sock4, '0.0.0.0');
73 $stream4 = socket_export_stream($sock4);
74 socket_close($sock4);
75 test($stream4, $sock4);
/dports/www/mod_php73/php-7.3.33/ext/sockets/tests/
H A Dsocket_export_stream-4.phpt59 $sock4 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
60 socket_bind($sock4, '0.0.0.0', 58484);
61 $stream4 = socket_export_stream($sock4);
62 socket_close($sock4);
63 test($stream4, $sock4);

12345678