Lines Matching refs:conn1
1226 static void securevnc_setup(int conn1, int conn2) { in securevnc_setup() argument
1239 int server = reverse ? conn1 : conn2; in securevnc_setup()
1240 int viewer = reverse ? conn2 : conn1; in securevnc_setup()
1670 int listen_fd = -1, listen_fd6 = -1, conn1 = -1, conn2 = -1, ret, one = 1; in enc_connections() local
1679 conn1 = fileno(stdin); in enc_connections()
1688 if (sscanf(connect_host, "fd=%d,%d", &conn1, &conn2) == 2) { in enc_connections()
1823 conn1 = accept(listen_fd, (struct sockaddr *) &client, &clen); in enc_connections()
1824 if (conn1 < 0) { in enc_connections()
1833 conn1 = accept(listen_fd6, (struct sockaddr *) &addr, &addrlen); in enc_connections()
1834 if (conn1 < 0) { in enc_connections()
1844 if (setsockopt(conn1, IPPROTO_TCP, TCP_NODELAY, (char *)&one, sizeof(one)) < 0) { in enc_connections()
1885 fprintf(stderr, "%s: got connection: %d\n", prog, conn1); in enc_connections()
1990 securevnc_setup(conn1, conn2); in enc_connections()
2001 close(conn1); in enc_connections()
2011 enc_raw_xfer(conn1, conn2); in enc_connections()
2013 enc_xfer(conn1, conn2, 1); in enc_connections()
2018 enc_raw_xfer(conn2, conn1); in enc_connections()
2020 enc_xfer(conn2, conn1, 0); in enc_connections()