/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
telnet.py | 38 servname = sys.argv[2]
40 servname = 'telnet'
42 if '0' <= servname[:1] <= '9':
43 port = eval(servname)
46 port = getservbyname(servname, 'tcp')
48 sys.stderr.write(servname + ': bad tcp service name\n')
|
/external/python/cpython2/Demo/sockets/ |
telnet.py | 38 servname = sys.argv[2] 40 servname = 'telnet' 42 if '0' <= servname[:1] <= '9': 43 port = eval(servname) 46 port = getservbyname(servname, 'tcp') 48 sys.stderr.write(servname + ': bad tcp service name\n')
|
/libcore/luni/src/main/native/ |
Portability.h | 28 static inline int android_getaddrinfofornet(const char* hostname, const char* servname, 30 return getaddrinfo(hostname, servname, hints, res);
|
/external/python/cpython2/Demo/threads/ |
telnet.py | 42 servname = sys.argv[2] 44 servname = 'telnet' 46 if '0' <= servname[:1] <= '9': 47 port = eval(servname) 50 port = getservbyname(servname, 'tcp') 52 sys.stderr.write(servname + ': bad tcp service name\n')
|
/external/syslinux/core/lwip/src/include/lwip/ |
netdb.h | 105 const char *servname, 114 #define getaddrinfo(nodname, servname, hints, res) \ 115 lwip_getaddrinfo(nodname, servname, hints, res)
|
/bionic/libc/dns/net/ |
getaddrinfo.c | 262 "hostname nor servname provided, or not known", /* EAI_NONAME */ 263 "servname not supported for ai_socktype", /* EAI_SERVICE */ 407 const char *hostname, const char *servname, 420 (servname != NULL && 421 strcspn(servname, " \n\r\t^'\"") != strlen(servname))) { 435 servname == NULL ? "^" : servname, 564 getaddrinfo(const char *hostname, const char *servname, 567 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res) [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
getaddrinfo.c | 257 "hostname nor servname provided, or not known", /* EAI_NONAME */
258 "servname not supported for ai_socktype", /* EAI_SERVICE */
354 getaddrinfo(const char *hostname, const char *servname,
367 /* servname is allowed to be NULL */
385 if (hostname == NULL && servname == NULL)
427 * check for special cases. (1) numeric servname is disallowed if
428 * socktype/protocol are left unspecified. (2) servname is disallowed
445 error = get_portmatch(pai, servname, &svd);
477 error = explore_null(pai, servname, &cur->ai_next,
480 error = explore_numeric_scope(pai, hostname, servname,
[all...] |
/external/curl/lib/ |
curl_addrinfo.h | 69 const char *servname,
|
setup-os400.h | 45 const char *servname, 54 char *servname, curl_socklen_t servnamelen,
|
curl_addrinfo.c | 113 const char *servname, 127 error = getaddrinfo(nodename, servname, hints, &aihead);
|
/external/syslinux/core/lwip/src/api/ |
netdb.c | 260 * @param servname port number as string of NULL 266 lwip_getaddrinfo(const char *nodename, const char *servname, 281 if ((nodename == NULL) && (servname == NULL)) { 285 if (servname != NULL) { 288 port_nr = atoi(servname);
|
/external/libevent/ |
evutil.c | 860 parse_numeric_servname(const char *servname) 864 n = (int) strtol(servname, &endptr, 10); 865 if (n>=0 && n <= 65535 && servname[0] && endptr && !endptr[0]) 871 /** Parse a service name in 'servname', which can be a decimal port. 875 evutil_parse_servname(const char *servname, const char *protocol, 878 int n = parse_numeric_servname(servname); 883 struct servent *ent = getservbyname(servname, protocol); 951 * - Look up the port based on 'servname', and store it in *portnum, 962 evutil_getaddrinfo_common_(const char *nodename, const char *servname, 968 if (nodename == NULL && servname == NULL [all...] |
util-internal.h | 357 const char *nodename, const char *servname, 370 int evutil_getaddrinfo_common_(const char *nodename, const char *servname, 375 const char *nodename, const char *servname,
|
evdns.c | [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
getaddrinfo.c | 148 "hostname nor servname provided, or not known.",/* EAI_NONAME */
149 "servname not supported for ai_socktype.", /* EAI_SERVICE */
236 getaddrinfo(const char*hostname, const char*servname,
276 if (hostname == NULL && servname == NULL)
335 if (servname) {
336 if (str_isnumber(servname)) {
342 port = htons((u_short)atoi(servname));
362 if ((sp = getservbyname(servname, proto)) == NULL)
|
/external/python/cpython2/Modules/ |
getaddrinfo.c | 148 "hostname nor servname provided, or not known.",/* EAI_NONAME */ 149 "servname not supported for ai_socktype.", /* EAI_SERVICE */ 236 getaddrinfo(const char*hostname, const char*servname, 276 if (hostname == NULL && servname == NULL) 335 if (servname) { 336 if (str_isnumber(servname)) { 342 port = htons((u_short)atoi(servname)); 362 if ((sp = getservbyname(servname, proto)) == NULL)
|
/external/python/cpython3/Modules/ |
getaddrinfo.c | 148 "hostname nor servname provided, or not known.",/* EAI_NONAME */ 149 "servname not supported for ai_socktype.", /* EAI_SERVICE */ 236 getaddrinfo(const char*hostname, const char*servname, 276 if (hostname == NULL && servname == NULL) 335 if (servname) { 336 if (str_isnumber(servname)) { 342 port = htons((u_short)atoi(servname)); 362 if ((sp = getservbyname(servname, proto)) == NULL)
|
/libcore/ojluni/src/main/native/ |
net_util_md.h | 87 typedef int (*getaddrinfo_f)(const char *nodename, const char *servname,
|
/external/curl/packages/OS400/ |
os400sys.c | 264 char * servname, curl_socklen_t servnamelen, 280 if(servname && servnamelen) 297 i = QadrtConvertE2A(servname, eservname, 299 servname[i] = '\0'; 310 Curl_getaddrinfo_a(const char * nodename, const char * servname, 333 if(servname) { 334 i = strlen(servname); 341 QadrtConvertA2E(eservname, servname, i, i);
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
wspiapi.h | 38 typedef int (WINAPI *WSPIAPI_PGETADDRINFO)(const char *nodename,const char *servname,const struct addrinfo *hints,struct addrinfo **res); 64 int WINAPI WspiapiGetAddrInfo(const char *nodename,const char *servname,const struct addrinfo *hints,struct addrinfo **res);
|
ws2tcpip.h | 234 WINSOCK_API_LINKAGE int WSAAPI getaddrinfo(const char *nodename,const char *servname,const struct addrinfo *hints,struct addrinfo **res); 240 typedef int (WSAAPI *LPFN_GETADDRINFO)(const char *nodename,const char *servname,const struct addrinfo *hints,struct addrinfo **res);
|
/external/libevent/include/event2/ |
dns.h | 687 const char *nodename, const char *servname,
|
util.h | 788 int evutil_getaddrinfo(const char *nodename, const char *servname,
|