Lines Matching refs:port
117 my %serverportfile;# all server port file names, identified by server id
122 my %PORT = (nolisten => 47); # port we use for a local non-listening service
131 my $portrange = 999; # space from which to choose a random port
132 # don't increase without making sure generated port
173 # Create a server socket on a random (unused) port, then close it and
174 # return the port number
434 # Return the port to use for the given protocol.
480 # dynamic http port it too needs to get restarted when the http server
531 # Verify that the server that runs on $ip, $port is our server. This also
540 # $port_or_path contains a path for Unix sockets, sws ignores the port
541 my $port = ($ipvnum eq "unix") ? 80 : $port_or_path;
566 $flags .= "\"$proto://$ip:$port/${bonus}verifiedserver\"";
570 # verify if our/any server is running on this port
605 logmsg "RUN: failed to resolve host ($proto://$ip:$port/verifiedserver)\n";
609 logmsg "RUN: Unknown server on our $server port: $port ($res)\n";
616 # Verify that the server that runs on $ip, $port is our server. This also
622 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
643 $flags .= "\"$proto://$ip:$port/verifiedserver\"";
647 # check if this is our server running on this port:
667 logmsg "RUN: Unknown server on our $server port: $port\n";
683 # Verify that the server that runs on $ip, $port is our server. This also
689 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
709 $flags .= "\"http://$ip:$port/verifiedserver\"";
713 # verify if our/any server is running on this port
748 logmsg "RUN: failed to resolve host ($proto://$ip:$port/verifiedserver)\n";
752 logmsg "RUN: Unknown server on our $server port: $port\n";
764 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
779 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
813 # on $ip, $port is our server. This also implies that we can speak with it,
818 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
842 $flags .= "\"https://$ip:$port/verifiedserver\"";
846 # verify if our/any server is running on this port
883 logmsg "RUN: failed to resolve host (https://$ip:$port/verifiedserver)\n";
887 logmsg "RUN: Unknown server on our $server port: $port ($res)\n";
897 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
908 # Verify that the server that runs on $ip, $port is our server. This also
914 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
929 $flags .= "\"$proto://$ip:$port/SERVER/verifiedserver\"";
933 # check if this is our server running on this port:
953 logmsg "RUN: Unknown server on our $server port: $port\n";
968 # Verify that the server that runs on $ip, $port is our server. This also
974 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
989 $flags .= "\"$proto://$ip:$port\"";
993 # check if this is our server running on this port:
1013 logmsg "RUN: Unknown server on our $server port: $port\n";
1028 # Verify that the server that runs on $ip, $port is our server.
1061 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
1069 $pid = &$fun($proto, $ipvnum, $idnum, $ip, $port);
1088 my ($proto, $ipvnum, $idnum, $ip, $port) = @_;
1093 my $pid = &$fun($proto, $ipvnum, $idnum, $ip, $port);
1166 $flags .= "--ipv$ipvnum --port 0 ";
1182 my $port = 0;
1184 $port = $port_or_path = pidfromfile($portfile);
1199 logmsg "RUN: $srvrname server is on PID $httppid port $port_or_path\n";
1202 return (0, $httppid, $pid2, $port);
1242 my $port = getfreeport($ipvnum);
1244 my $aflags = "--port $port --port2 $port2 $flags";
1260 "http-port $port https-port $port2 ".
1264 return (0+!$http2pid, $http2pid, $pid2, $port, $port2);
1304 my $port = getfreeport($ipvnum);
1305 my $aflags = "--port $port $flags";
1320 logmsg "RUN: $srvrname server PID $http3pid port $port\n";
1323 return (0+!$http3pid, $http3pid, $pid3, $port);
1382 my $port = getfreeport($ipvnum);
1383 my $options = "$flags --accept $port";
1400 logmsg "RUN: $srvrname server is PID $httpspid port $port\n";
1405 return (0+!$httpspid, $httpspid, $pid2, $port);
1447 my $port = getfreeport($ipvnum);
1448 my $allflags = "--port $port $flags";
1463 logmsg "RUN: $srvrname server PID $httptlspid port $port\n";
1465 return (0+!$httptlspid, $httptlspid, $pid2, $port);
1510 $flags .= "--ipv$ipvnum --port 0 --addr \"$ip\"";
1524 my $port = pidfromfile($portfile);
1526 logmsg "PINGPONG runs on port $port ($portfile)\n" if($verb);
1529 my $pid3 = verifyserver($proto, $ipvnum, $idnum, $ip, $port);
1539 logmsg "RUN: $srvrname server is PID $ftppid port $port\n" if($verb);
1541 # Assign the correct port variable!
1542 $PORT{$proto . ($ipvnum == 6? '6': '')} = $port;
1589 my $port = getfreeport($ipvnum);
1590 my $options = "$flags --accept $port";
1609 logmsg "RUN: $srvrname server is PID $protospid port $port\n";
1612 return (0+!$protospid, $protospid, $pid2, $port);
1657 $flags .= "--ipv$ipvnum --port 0 --srcdir \"$srcdir\"";
1670 my $port = pidfromfile($portfile);
1673 my $pid3 = verifyserver($proto, $ipvnum, $idnum, $ip, $port);
1684 logmsg "RUN: $srvrname server on PID $tftppid port $port\n";
1687 return (0, $pid2, $tftppid, $port);
1733 $flags .= "--ipv$ipvnum --port 0 --srcdir \"$srcdir\"";
1746 my $port = pidfromfile($portfile);
1749 my $pid3 = verifyserver($proto, $ipvnum, $idnum, $ip, $port);
1760 logmsg "RUN: $srvrname server PID $rtsppid port $port\n";
1763 return (0, $rtsppid, $pid2, $port);
1816 my $port = getfreeport($ipvnum);
1818 push @tports, $port;
1820 my $options = "$flags --sshport $port";
1834 logmsg "RUN: failed to start the $srvrname server on $port\n";
1846 if(verifysftp('sftp', $ipvnum, $idnum, $ip, $port) < 1) {
1856 logmsg "RUN: failed to verify the $srvrname server on $port\n";
1884 logmsg "RUN: $srvrname on PID $pid2 port $port\n" if($verb);
1886 return (0, $pid2, $sshpid, $port);
1896 my $port = protoport($proto);
1918 # start our MQTT server - on a random port!
1920 " --port 0 ".
1987 " --port 0 ".
2005 my $port = pidfromfile($portfile);
2011 return (0, $pid2, $sockspid, $port);
2053 my $port = getfreeport($ipvnum);
2054 my $aflags = "--port $port $flags";
2069 logmsg "RUN: $srvrname server PID $dictpid port $port\n";
2072 return (0+!$dictpid, $dictpid, $pid2, $port);
2114 my $port = getfreeport($ipvnum);
2115 my $aflags = "--port $port $flags";
2130 logmsg "RUN: $srvrname server PID $smbpid port $port\n";
2133 return (0+!$smbpid, $smbpid, $pid2, $port);
2174 my $port = getfreeport($ipvnum);
2175 my $aflags = "--port $port $flags";
2190 logmsg "RUN: $srvrname server PID $ntelpid port $port\n";
2193 return (0+!$ntelpid, $ntelpid, $pid2, $port);
2231 my $port;
2238 $port = protoport($protoip);
2245 return &responsiveserver($proto, $ipvnum, $idnum, $ip, $port);
2255 my $port = protoport($proto);
2263 $port = protoport('rtsp6');
2267 return &responsiveserver($proto, $ipvnum, $idnum, $ip, $port);
2277 my $port = protoport($proto);
2285 $port = protoport('tftp6');
2289 return &responsiveserver($proto, $ipvnum, $idnum, $ip, $port);
2301 my $port = protoport($proto);
2306 $port = protoport("httptls6");
2310 return &responsiveserver($proto, $ipvnum, $idnum, $ip, $port);
2621 my $port;
2622 ($serr, $pid, $pid2, $port) =
2624 $PORT{'gopher'} = $port;
2629 logmsg "GOPHERPORT => $port\n" if($verbose);
2633 my $port;
2634 ($serr, $pid, $pid2, $port) =
2636 $PORT{'gophers'} = $port;
2642 logmsg "GOPHERSPORT => $port\n" if($verbose);
2922 my $port;
2948 $port = protoport(lc $proto);
2949 $$thing =~ s/${prefix}(?:$proto)PORT/$port/g;
2952 $port = protoport('httpproxy');
2953 $$thing =~ s/${prefix}PROXYPORT/$port/g;