Lines Matching refs:port
211 // default pullup, just default listenstr.If want to customer listen-string, please use 'hdc -m -s lanip:port'
232 if (!p) { // Only port
234 Base::PrintMessage("The port-string's length must < 5");
240 Base::PrintMessage("The port must be digit buf:%s", buf);
244 int port = atoi(buf);
245 if (port <= 0 || port > MAX_IP_PORT) {
249 (void)snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "::ffff:127.0.0.1:%d", port);
257 Base::PrintMessage("The port must be digit str:%s", str);
261 int port = atoi(p + 1);
265 if ((port <= 0 || port > MAX_IP_PORT)) {
266 Base::PrintMessage("-s content port incorrect.");
270 if (uv_ip4_addr(buf, port, &addrv4) == 0) {
273 } else if (uv_ip6_addr(buf, port, &addrv6) == 0) {
383 int port;
387 port = DEFAULT_PORT;
405 port = atoi(env);
406 if (port > MAX_IP_PORT || port <= 0) {
413 g_serverListenString += std::to_string(port);
428 // hdc -l4 -m -s ip:port|hdc -l4 -m
429 // hdc -l4 - s ip:port list targets