Lines Matching refs:port
47 { "port", 'p', arg_string, &port_str, "port to connect to", "port" },
71 int port = 0;
98 port = s->s_port;
102 port = strtol (port_str, &ptr, 10);
103 if (port == 0 && ptr == port_str)
104 errx (1, "Bad port `%s'", port_str);
105 port = htons(port);
109 if (port == 0)
110 port = krb5_getportbyname (*context, KF_PORT_NAME, "tcp", KF_PORT_NUM);
116 return port;
284 doit (const char *hostname, int port, const char *service,
296 snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
325 int argcc,port,i;
329 port = client_setup(&context, &argcc, argv);
339 ret = doit (argv[i], port, service, message, sizeof(message));