Lines Matching defs:port

27 - socket.getservbyname(servicename[, protocolname]) --> port number
36 - socket.getaddrinfo(host, port [, family, type, proto, flags])
38 - socket.getnameinfo(sockaddr, flags) --> (host, port)
48 - an internet socket address is a pair (hostname, port)
50 (including the dd.dd.dd.dd notation) and port is in host byte order
58 - an AF_QIPCRTR socket address is a (node, port) tuple where the
59 node and port are non-negative integers.
68 v2 is the port identifier
72 v2 is the lower port number
73 v3 is the upper port number
1773 unsigned int node, port;
1783 if (!PyArg_ParseTuple(args, "II:getsockaddrarg", &node, &port))
1787 addr->sq_port = port;
1797 int port, cid;
1807 if (!PyArg_ParseTuple(args, "II:getsockaddrarg", &cid, &port))
1810 addr->svm_port = port;
1826 int port, result;
1836 "(host, port)",
1837 idna_converter, &host, &port))
1842 "%s(): port must be 0-65535.", caller);
1852 if (port < 0 || port > 0xffff) {
1855 "%s(): port must be 0-65535.", caller);
1859 addr->sin_port = htons((short)port);
1868 int port, result;
1880 "(host, port[, flowinfo[, scopeid]])",
1881 idna_converter, &host, &port, &flowinfo,
1887 "%s(): port must be 0-65535.", caller);
1897 if (port < 0 || port > 0xffff) {
1900 "%s(): port must be 0-65535.", caller);
1910 addr->sin6_port = htons((short)port);
2806 For IP sockets, the address info is a pair (hostaddr, port).");
3167 pair (host, port); the host must refer to the local host. For raw packet\n\
3338 is a pair (host, port).");
3414 (hostaddr, port). For IPv6 sockets, the address info is a 4-tuple\n\
3415 (hostaddr, port, flowinfo, scope_id).");
3445 info is a pair (hostaddr, port).");
4392 For IP sockets, the address is a pair (hostaddr, port).");
5915 This only returns the port number, since the other info is already
5944 Return a port number from a service name and protocol name.\n\
5950 /* Python interface to getservbyport(port).
5958 int port;
5961 if (!PyArg_ParseTuple(args, "i|s:getservbyport", &port, &proto))
5963 if (port < 0 || port > 0xffff) {
5966 "getservbyport: port must be 0-65535.");
5970 if (PySys_Audit("socket.getservbyport", "is", port, proto) < 0) {
5975 sp = getservbyport(htons((short)port), proto);
5978 PyErr_SetString(PyExc_OSError, "port/proto not found");
5985 "getservbyport(port[, protocolname]) -> string\n\
5987 Return the service name from a port number and protocol name.\n\
6531 /* Python interface to getaddrinfo(host, port). */
6537 static char* kwnames[] = {"host", "port", "family", "type", "proto",
6655 "getaddrinfo(host, port [, family, type, proto, flags])\n\
6658 Resolve host and port into addrinfo struct.");
6671 int port;
6688 &hostp, &port, &flowinfo, &scope_id))
6702 PyOS_snprintf(pbuf, sizeof(pbuf), "%d", port);
6705 hints.ai_socktype = SOCK_DGRAM; /* make numeric port happy */
6762 "getnameinfo(sockaddr, flags) --> (host, port)\n\
6764 Get host and port for a sockaddr.");
8107 /* Some port configuration */