Lines Matching defs:port
29 * Accepts a TCP connection on a custom port (IPv4 or IPv6). Connects to a
30 * given addr + port backend (that is NOT extracted form the client's
47 * "backendport [number:0]" - TCP port of backend to connect to. 0 means use
48 the client's specified port number.
124 unsigned short port; /* backend port */
147 static unsigned short port = DEFAULT_PORT;
159 config.port = CONFIG_PORT;
215 config.port = shortval(value);
216 logmsg("backendport [%d] set", config.port);
329 if(!config.port)
333 s4port = config.port;
346 /* copy port and address from connect request */
576 if(!config.port) {
581 s5port = config.port;
614 /* mirror back the original addr + port */
619 /* port number */
857 /* When the specified listener port is zero, it is actually a
858 request to let the system choose a non-zero available port. */
891 logmsg("Error binding socket on port %hu: (%d) %s",
902 /* The system was supposed to choose a port number, figure out which
903 port we actually got and update the listener port value with it. */
933 /* Real failure, listener port shall not be zero beyond this point. */
934 logmsg("Apparently getsockname() succeeded, with listener port zero.");
1052 else if(!strcmp("--port", argv[arg])) {
1057 port = curlx_ultous(ulnum);
1064 " --backendport [TCP port]\n"
1075 " --port [port]\n");
1102 sock = sockdaemon(sock, &port
1123 logmsg("Listening on port %hu", port);
1131 wroteportfile = write_portfile(portname, port);