Lines Matching refs:what

342     my (@what)=@_;
344 for(my $i = scalar(@what) - 1; $i >= 0; $i--) {
345 my $srvrline = $what[$i];
365 $what[$i] = "$server$lnrest" if($tlsext);
369 return &startservers(@what);
2378 my @what = @_;
2381 for(@what) {
2383 my $what = lc($whatlist[0]);
2384 $what =~ s/[^a-z0-9\/-]//g;
2387 if($what =~ /^(ftp|gopher|http|imap|pop3|smtp)s((\d*)(-ipv6|-unix|))$/) {
2391 if(($what eq "pop3") ||
2392 ($what eq "ftp") ||
2393 ($what eq "imap") ||
2394 ($what eq "smtp")) {
2395 if($run{$what} &&
2396 !responsive_pingpong_server($what, "", $verbose)) {
2397 if(stopserver($what)) {
2398 return ("failed stopping unresponsive ".uc($what)." server", 3);
2401 if(!$run{$what}) {
2402 ($serr, $pid, $pid2) = runpingpongserver($what, "", $verbose);
2404 return ("failed starting ". uc($what) ." server", $serr);
2406 logmsg sprintf("* pid $what => %d %d\n", $pid, $pid2) if($verbose);
2407 $run{$what}="$pid $pid2";
2410 elsif($what eq "ftp-ipv6") {
2427 elsif($what eq "gopher") {
2446 elsif($what eq "gopher-ipv6") {
2465 elsif($what eq "http") {
2484 elsif($what eq "http-proxy") {
2503 elsif($what eq "http-ipv6") {
2522 elsif($what eq "rtsp") {
2538 elsif($what eq "rtsp-ipv6") {
2555 elsif($what =~ /^(ftp|imap|pop3|smtp)s$/) {
2561 if($runcert{$what} && ($runcert{$what} ne $certfile)) {
2563 if(stopserver($what)) {
2564 return ("failed stopping $what server with different cert", 3);
2581 if(!$run{$what}) {
2582 ($serr, $pid, $pid2, $PORT{$what}) =
2583 runsecureserver($verbose, "", $certfile, $what,
2586 return ("failed starting $what server (stunnel)", $serr);
2588 logmsg sprintf("* pid $what => %d %d\n", $pid, $pid2)
2590 $run{$what}="$pid $pid2";
2593 elsif($what eq "file") {
2596 elsif($what eq "https") {
2650 elsif($what eq "http/2") {
2691 elsif($what eq "http/3") {
2731 elsif($what eq "gophers") {
2775 elsif($what eq "https-proxy") {
2806 elsif($what eq "httptls") {
2828 elsif($what eq "httptls-ipv6") {
2850 elsif($what eq "tftp") {
2867 elsif($what eq "tftp-ipv6") {
2884 elsif($what eq "sftp" || $what eq "scp") {
2894 elsif($what eq "socks4" || $what eq "socks5" ) {
2904 elsif($what eq "socks5unix") {
2914 elsif($what eq "mqtt" ) {
2930 elsif($what eq "http-unix") {
2949 elsif($what eq "dict") {
2960 elsif($what eq "smb") {
2971 elsif($what eq "telnet") {
2983 elsif($what eq "none") {
2987 warn "we don't support a server for $what";
2988 return ("no server for $what", 4);