Home | History | Annotate | Download | only in x11vnc

Lines Matching defs:port

2722 	static int port = -1;
2735 if (ipv6_listen && screen->port <= 0) {
2737 screen->port = got_rfbport_val;
2743 screen->port = find_free_port6(ap, ap+200);
2745 rfbLog("openssl_port: reset port from 0 => %d\n", screen->port);
2749 port = screen->port;
2750 } else if (screen->listenSock > -1 && screen->port > 0) {
2751 port = screen->port;
2753 } else if (ipv6_listen && screen->port > 0) {
2754 port = screen->port;
2755 } else if (screen->port == 0) {
2756 port = screen->port;
2763 port, screen->listenSock);
2778 if (port < 0) {
2779 rfbLog("openssl_port: could not obtain listening port %d\n", port);
2784 } else if (port == 0) {
2788 sock = listen_tcp(port, iface, 0);
2790 fd6 = listen6(port);
2798 rfbLog("openssl_port: could not reopen port %d\n", port);
2807 rfbLog("openssl_port: listen on port/sock %d/%d\n", port, sock);
2808 if (ipv6_listen && port > 0) {
2810 fd6 = listen6(port);
2815 rfbLog("openssl_port: listen on port/sock %d/%d (ipv6)\n",
2816 port, fd6);
2821 announce(port, 1, NULL);
2824 openssl_port_num = port;
2831 static int port = 0;
2856 rfbLog("https_port: could not find port %d\n", https_port_num);
2859 port = https_port_num;
2861 if (port <= 0) {
2862 rfbLog("https_port: could not obtain listening port %d\n", port);
2877 sock = listen_tcp(port, iface, 0);
2879 rfbLog("https_port: could not open port %d\n", port);
2881 fd6 = listen6(port);
2890 rfbLog("https_port: listen on port/sock %d/%d\n", port, sock);
2895 fd6 = listen6(port);
2900 rfbLog("https_port: listen on port/sock %d/%d (ipv6)\n",
2901 port, fd6);
3366 rfbLog("SSL: accept_openssl: seeking IPv6 port.\n");
3368 rfbLog("SSL: accept_openssl: IPv6 port: %d\n", cport);
3371 rfbLog("SSL: accept_openssl: could not find open port.\n");
3383 rfbLog("SSL: accept_openssl: could not listen on port %d.\n",
3726 if (https_port_redir < 0 || (strstr(buf, "PORT=") || strstr(buf, "port="))) {
3747 if (sscanf(buf, "PORT=%d,", &p) == 1) {
3751 } else if (sscanf(buf, "port=%d,", &p) == 1) {
4027 int origport = screen->port;
4028 int useport = screen->port;
4030 /* to expand $PORT correctly in index.vnc */
4042 screen->port = useport;
4044 rfbLog("SSL: -httpsredir guess port: %d helper[%d]\n", screen->port, pid);
4071 screen->port = origport;
4080 /* to expand $PORT correctly in index.vnc */
4081 if (screen->port == 0) {
4085 screen->port = atoi(getenv(
4090 screen->port = tport;
4094 rfbLog("SSL: screen->port %d for helper[%d]\n", screen->port, pid);