Home | History | Annotate | Download | only in libvncclient

Lines Matching defs:port

298  * ConnectToTcpAddr connects to the given TCP port.
302 ConnectClientToTcpAddr(unsigned int host, int port)
312 addr.sin_port = htons(port);
341 ConnectClientToTcpAddr6(const char *hostname, int port)
353 snprintf(port_s, 10, "%d", port);
433 * FindFreeTcpPort tries to find unused TCP port in the range
440 int sock, port;
455 for (port = TUNNEL_PORT_OFFSET + 99; port > TUNNEL_PORT_OFFSET; port--) {
456 addr.sin_port = htons((unsigned short)port);
459 return port;
469 * ListenAtTcpPort starts listening at the given TCP port.
473 ListenAtTcpPort(int port)
475 return ListenAtTcpPortAndAddress(port, NULL);
481 * ListenAtTcpPortAndAddress starts listening at the given TCP port on
486 ListenAtTcpPortAndAddress(int port, const char *address)
494 addr.sin_port = htons(port);
528 snprintf(port_str, 8, "%d", port);