Lines Matching refs:port
57 { "port", 'p', arg_string, &port_str, "port to listen to", "port" },
156 doit (int port, const char *service)
168 my_addr.sin_port = port;
199 int port = 0;
212 port = s->s_port;
216 port = strtol (port_str, &ptr, 10);
217 if (port == 0 && ptr == port_str)
218 errx (1, "Bad port `%s'", port_str);
219 port = htons(port);
223 if (port == 0)
224 port = krb5_getportbyname (*context, PORT, "tcp", 4711);
226 return port;
232 int port = common_setup(context, &argc, argv, usage);
235 return port;
242 int port = setup(&context, argc, argv);
243 return doit (port, service);