Lines Matching defs:port
28 * 1. Accept a TCP connection on a custom port (IPv4 or IPv6), or connect
29 * to a given (localhost) port.
145 static unsigned short port = DEFAULT_PORT;
1101 Replies to PORT with "IPv[num]/[port]" */
1102 msnprintf((char *)buffer, sizeof(buffer), "%s/%hu\n", ipv_inuse, port);
1255 /* When the specified listener port is zero, it is actually a
1256 request to let the system choose a non-zero available port. */
1278 logmsg("Error binding socket on port %hu: (%d) %s",
1285 /* The system was supposed to choose a port number, figure out which
1286 port we actually got and update the listener port value with it. */
1318 /* Real failure, listener port shall not be zero beyond this point. */
1319 logmsg("Apparently getsockname() succeeded, with listener port zero.");
1330 logmsg("instructed to bind port without listening");
1413 else if(!strcmp("--port", argv[arg])) {
1418 port = curlx_ultous(ulnum);
1423 /* Asked to actively connect to the specified local port instead of
1457 " --port [port]\n"
1458 " --connect [port]\n"
1492 /* Active mode, we should connect to the given port number */
1521 logmsg("Error connecting to port %hu: (%d) %s",
1531 sock = sockdaemon(sock, &port);
1542 logmsg("Connected to port %hu", connectport);
1544 logmsg("Bound without listening on port %hu", port);
1546 logmsg("Listening on port %hu", port);
1554 wroteportfile = write_portfile(portname, port);