/external/python/cpython2/Lib/test/ |
D | test_docxmlrpc.py | 23 serv = DocXMLRPCServer(("localhost", 0), logRequests=False) 27 serv.set_server_title("DocXMLRPCServer Test Documentation") 28 serv.set_server_name("DocXMLRPCServer Test Docs") 29 serv.set_server_documentation( 39 serv.register_introspection_functions() 40 serv.register_instance(TestClass()) 50 serv.register_function(add) 51 serv.register_function(lambda x, y: x-y) 52 return serv 54 serv.server_close() [all …]
|
D | test_socket.py | 53 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 54 self.port = test_support.bind_port(self.serv) 55 self.serv.listen(1) 58 self.serv.close() 59 self.serv = None 64 self.serv = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 65 self.port = test_support.bind_port(self.serv) 68 self.serv.close() 69 self.serv = None 207 conn, addr = self.serv.accept() [all …]
|
D | test_smtplib.py | 21 def server(evt, buf, serv): argument 22 serv.listen(5) 25 conn, addr = serv.accept() 40 serv.close() 106 def debugging_server(serv, serv_evt, client_evt): argument 122 serv.close() 133 serv.close() 159 self.serv = smtpd.DebuggingServer((HOST, 0), ('nowhere', -1)) 161 self.port = self.serv.socket.getsockname()[1] 162 serv_args = (self.serv, self.serv_evt, self.client_evt) [all …]
|
D | test_nntplib.py | 18 def server(evt, serv, evil=False): argument 19 serv.listen(5) 21 conn, addr = serv.accept() 31 serv.close()
|
D | test_xmlrpc.py | 338 serv = MyXMLRPCServer(("localhost", 0), requestHandler, 342 serv.socket.settimeout(3) 343 serv.server_bind() 345 ADDR, PORT = serv.socket.getsockname() 351 serv.server_activate() 352 serv.register_introspection_functions() 353 serv.register_multicall_functions() 354 serv.register_function(pow) 355 serv.register_function(lambda x,y: x+y, 'add') 356 serv.register_function(lambda x: x, test_support.u(r't\xea\u0161t')) [all …]
|
D | test_poplib.py | 302 def server(self, evt, serv): argument 303 serv.listen(5) 306 conn, addr = serv.accept() 312 serv.close()
|
D | test_httplib.py | 716 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 717 self.port = test_support.bind_port(self.serv) 719 self.serv.listen(5) 726 self.serv.close() 727 self.serv = None 768 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 769 TimeoutTest.PORT = test_support.bind_port(self.serv) 770 self.serv.listen(5) 773 self.serv.close() 774 self.serv = None
|
D | test_telnetlib.py | 14 def server(evt, serv, dataq=None): argument 20 serv.listen(5) 23 conn, addr = serv.accept() 41 serv.close()
|
/external/ppp/pppd/plugins/radius/ |
D | config.c | 85 SERVER *serv; in set_option_srv() local 95 serv = (SERVER *) option->val; in set_option_srv() 97 for (i = 0; i < serv->max; i++) { in set_option_srv() 98 free(serv->name[i]); in set_option_srv() 100 serv->max = 0; in set_option_srv() 107 serv->port[serv->max] = atoi(q); in set_option_srv() 111 serv->port[serv->max] = PW_AUTH_UDP_PORT; in set_option_srv() 113 serv->port[serv->max] = ntohs ((unsigned int) svp->s_port); in set_option_srv() 116 serv->port[serv->max] = PW_ACCT_UDP_PORT; in set_option_srv() 118 serv->port[serv->max] = ntohs ((unsigned int) svp->s_port); in set_option_srv() [all …]
|
/external/dnsmasq/src/ |
D | network.c | 1060 struct server *serv; in set_servers() local 1069 for (serv = daemon->servers; serv;) in set_servers() 1071 struct server *tmp = serv->next; in set_servers() 1072 if (serv->flags & SERV_FROM_RESOLV) in set_servers() 1074 serv->next = old_servers; in set_servers() 1075 old_servers = serv; in set_servers() 1077 server_gone(serv); in set_servers() 1081 serv->next = new_servers; in set_servers() 1082 new_servers = serv; in set_servers() 1084 serv = tmp; in set_servers() [all …]
|
D | forward.c | 123 struct server *serv; in search_servers() local 126 for (serv = daemon->servers; serv; serv=serv->next) in search_servers() 128 …if ((serv->flags & SERV_FOR_NODOTS) && *type != SERV_HAS_DOMAIN && !strchr(qdomain, '.') && namele… in search_servers() 130 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; in search_servers() 132 if (serv->flags & SERV_NO_ADDR) in search_servers() 134 else if (serv->flags & SERV_LITERAL_ADDRESS) in search_servers() 139 if (serv->addr.sa.sa_family == AF_INET) in search_servers() 140 *addrpp = (struct all_addr *)&serv->addr.in.sin_addr; in search_servers() 143 *addrpp = (struct all_addr *)&serv->addr.in6.sin6_addr; in search_servers() 150 else if (serv->flags & SERV_HAS_DOMAIN) in search_servers() [all …]
|
D | cache.c | 1127 struct server *serv, *serv1; in dump_cache() local 1139 for (serv = daemon->servers; serv; serv = serv->next) in dump_cache() 1140 serv->flags &= ~SERV_COUNTED; in dump_cache() 1142 for (serv = daemon->servers; serv; serv = serv->next) in dump_cache() 1143 if (!(serv->flags & (SERV_NO_ADDR | SERV_LITERAL_ADDRESS | SERV_COUNTED))) in dump_cache() 1147 for (serv1 = serv; serv1; serv1 = serv1->next) in dump_cache() 1148 …SERV_NO_ADDR | SERV_LITERAL_ADDRESS | SERV_COUNTED)) && sockaddr_isequal(&serv->addr, &serv1->addr… in dump_cache() 1154 port = prettyprint_addr(&serv->addr, addrbuff); in dump_cache()
|
D | option.c | 1376 struct server *serv, *newlist = NULL; in one_opt() local 1392 serv = opt_malloc(sizeof(struct server)); in one_opt() 1393 memset(serv, 0, sizeof(struct server)); in one_opt() 1394 serv->next = newlist; in one_opt() 1395 newlist = serv; in one_opt() 1396 serv->domain = domain; in one_opt() 1397 serv->flags = domain ? SERV_HAS_DOMAIN : SERV_FOR_NODOTS; in one_opt() 1494 serv = newlist; in one_opt() 1495 while (serv->next) in one_opt() 1497 serv->next->flags = serv->flags; in one_opt() [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_client.c | 1043 struct sockaddr_in serv, claddr; in radius_change_server() local 1109 os_memset(&serv, 0, sizeof(serv)); in radius_change_server() 1110 serv.sin_family = AF_INET; in radius_change_server() 1111 serv.sin_addr.s_addr = nserv->addr.u.v4.s_addr; in radius_change_server() 1112 serv.sin_port = htons(nserv->port); in radius_change_server() 1113 addr = (struct sockaddr *) &serv; in radius_change_server() 1114 addrlen = sizeof(serv); in radius_change_server() 1535 struct hostapd_radius_server *serv, in radius_client_dump_auth_server() argument 1565 serv->index, in radius_client_dump_auth_server() 1566 hostapd_ip_txt(&serv->addr, abuf, sizeof(abuf)), in radius_client_dump_auth_server() [all …]
|
/external/curl/lib/ |
D | memdebug.h | 118 #define ogetaddrinfo(host,serv,hint,res) \ argument 119 curl_dogetaddrinfo(host, serv, hint, res, __LINE__, __FILE__) 122 #define getaddrinfo(host,serv,hint,res) \ argument 123 curl_dogetaddrinfo(host, serv, hint, res, __LINE__, __FILE__) 129 #define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \ argument 130 curl_dogetnameinfo(sa, salen, host, hostlen, serv, servlen, flags, \
|
D | hostip6.c | 76 char *serv, GETNAMEINFO_TYPE_ARG46 servlen, in curl_dogetnameinfo() argument 82 serv, servlen, in curl_dogetnameinfo()
|
/external/python/cpython2/Modules/ |
D | getnameinfo.c | 89 getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) in getnameinfo() argument 94 char *serv; 136 if (serv == NULL || servlen == 0) { 142 strcpy(serv, numserv); 148 strcpy(serv, sp->s_name);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/ |
D | TestOptions.java | 205 String serv; in getDebuggeeAgentOptions() local 207 serv = "n"; in getDebuggeeAgentOptions() 209 serv = "y"; in getDebuggeeAgentOptions() 219 "transport=dt_socket,address=" + address + ",server=" + serv in getDebuggeeAgentOptions()
|
/external/ipsec-tools/src/libipsec/ |
D | policy_parse.y | 381 char *serv = NULL; local 391 if (portbuf && ((serv = malloc(portbuf->len + 1)) == NULL)) { 402 strncpy(serv, portbuf->buf, portbuf->len); 403 serv[portbuf->len] = '\0'; 410 error = getaddrinfo(addr, serv, &hints, &res); 412 if (serv != NULL) 413 free(serv);
|
D | ipsec_dump_policy.c | 401 char serv[NI_MAXSERV]; local 407 serv, sizeof(serv), niflags) != 0) 411 snprintf(buf, len, "%s[%s]", host, serv);
|
/external/netperf/src/missing/ |
D | getaddrinfo.c | 517 getnameinfo(sa, salen, node, nodelen, serv, servlen, flags) in getnameinfo() argument 522 char *serv; 542 } else if (node == NULL && serv == NULL) { 547 if (serv != NULL && servlen > 0) { 560 strcpy(serv, servent->s_name); 566 sprintf(serv, "%d", ntohs(sa_in->sin_port));
|
/external/toybox/toys/pending/ |
D | tcpsvd.c | 355 char *serv = NULL, *clie = NULL; in tcpsvd_main() local 358 if (toys.optflags & FLAG_l) serv = xstrdup(TT.name); in tcpsvd_main() 359 else serv = sock_to_address((struct sockaddr*)&haddr, 0); in tcpsvd_main() 368 setenv("PROTOLOCALHOST", serv, 1); in tcpsvd_main() 379 if (toys.optflags & FLAG_h) xprintf(" (%s-%s)", serv, clie); in tcpsvd_main() 386 free(serv); in tcpsvd_main()
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 48 size_t hostlen, char *serv, size_t servlen, int flags) in getnameinfo() argument 56 if (serv != NULL) { in getnameinfo() 58 if (strlcpy(serv, tmpserv, servlen) >= servlen) in getnameinfo()
|
D | port-aix.c | 409 size_t hostlen, char *serv, size_t servlen, int flags) in sshaix_getnameinfo() argument 421 snprintf(serv, servlen, "%d", sa6->sin6_port); in sshaix_getnameinfo() 425 return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); in sshaix_getnameinfo()
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | socket_ops.hpp | 241 char* host, std::size_t hostlen, char* serv, 246 char* host, std::size_t hostlen, char* serv, 252 char* host, std::size_t hostlen, char* serv,
|