Lines Matching defs:port
59 int listen6(int port);
62 int connect_tcp(char *host, int port);
63 int listen_tcp(int port, in_addr_t iface, int try6);
416 int port;
423 for (port = start; port <= end; port++) {
424 int sock = listen_tcp(port, htonl(INADDR_ANY), 0);
427 return port;
434 int port;
441 for (port = start; port <= end; port++) {
442 int sock = listen6(port);
445 return port;
540 int listen6(int port) {
548 if (port <= 0 || 65535 < port) {
549 /* for us, invalid port means do not listen. */
576 sin.sin6_port = htons(port);
589 sprintf(service, "%d", port);
652 if (port) {}
713 int connect_tcp(char *host, int port) {
721 rfbLog("connect_tcp: trying: %s %d\n", host, port);
728 fd = rfbConnectToTcpAddr(host, port);
737 rfbLog("connect_tcp: re-trying %s %d\n", host, port);
740 fd = rfbConnectToTcpAddr(host, port);
754 rfbLog("connect_tcp: trying IPv6 %s %d\n", host, port);
757 sprintf(service, "%d", port);
881 fd = rfbConnectToTcpAddr(host3, port);
892 int listen_tcp(int port, in_addr_t iface, int try6) {
899 if (port <= 0 || 65535 < port) {
900 /* for us, invalid port means do not listen. */
906 rfbLog("TESTING: IPV4_FAILS for listen_tcp: port=%d try6=%d\n", port, try6);
909 fd = rfbListenOnTCPPort(port, iface);
925 fd = listen6(port);
929 fd = listen6(port);