Lines Matching defs:ip
23 - socket.gethostbyname(hostname) --> host IP address (string: 'dd.dd.dd.dd')
24 - socket.gethostbyaddr(IP address) --> (hostname, [alias, ...], [IP addr, ...])
41 - socket.inet_aton(IP address) -> 32-bit packed IP representation
42 - socket.inet_ntoa(packed IP) -> IP address string
984 names to a numeric IP address. This usually calls gethostbyname()
1145 /* Create a string object representing an IP address.
1465 (in particular, numeric IP addresses). */
2437 For IP sockets, the address info is a pair (hostaddr, port).");
2711 Bind the socket to a local address. For IP sockets, the address is a\n\
2874 Connect the socket to a remote address. For IP sockets, the address\n\
2942 Return the address of the local endpoint. For IP sockets, the address\n\
2971 Return the address of the remote endpoint. For IP sockets, the address\n\
3909 For IP sockets, the address is a pair (hostaddr, port).");
4961 Return the IP address (a string of the form '255.255.255.255') for a host.");
5174 Return the true host name, a list of aliases, and a list of IP addresses,\n\
5175 for a host. The host argument is a string giving a host name or IP number.");
5178 /* Python interface to gethostbyaddr(IP). */
5266 Return the true host name, a list of aliases, and a list of IP addresses,\n\
5267 for a host. The host argument is a string giving a host name or IP number.");
5623 "inet_aton(string) -> bytes giving packed 32-bit IP representation\n\
5625 Convert an IP address in string format (123.45.67.89) to the 32-bit packed\n\
5658 "illegal IP address string passed to inet_aton");
5679 "illegal IP address string passed to inet_aton");
5696 Convert an IP address from 32-bit packed binary format to string format");
5710 "packed IP wrong length for inet_ntoa");
5724 "inet_pton(af, ip) -> packed IP address string\n\
5726 Convert an IP address from string format to a packed string suitable\n\
5737 char* ip;
5744 if (!PyArg_ParseTuple(args, "is:inet_pton", &af, &ip)) {
5756 retval = inet_pton(af, ip, packed);
5762 "illegal IP address string passed to inet_pton");
5783 char* ip;
5787 if (!PyArg_ParseTuple(args, "is:inet_pton", &af, &ip)) {
5792 ret = WSAStringToAddressA(ip, af, NULL, (LPSOCKADDR)&addr, &size);
5815 "inet_ntop(af, packed_ip) -> string formatted IP address\n\
5817 Convert a packed IP address of the given family to string format.");
5830 char ip[Py_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN) + 1];
5832 char ip[INET_ADDRSTRLEN + 1];
5836 memset((void *) &ip[0], '\0', sizeof(ip));
5845 "invalid length of packed IP address string");
5853 "invalid length of packed IP address string");
5865 retval = inet_ntop(af, packed_ip.buf, ip, sizeof(ip));
5885 char ip[Py_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN) + 1];
5887 char ip[INET_ADDRSTRLEN + 1];
5891 memset((void *) &ip[0], '\0', sizeof(ip));
5902 "invalid length of packed IP address string");
5913 "invalid length of packed IP address string");
5930 retlen = sizeof(ip);
5932 ip, &retlen);
5938 return PyUnicode_FromString(ip);
6644 PyModule_AddIntMacro(m, AF_INET6); /* IP version 6 */
7299 /* Some reserved IP v.4 addresses */