/external/python/cpython3/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()) 58 serv.register_function(add) 59 serv.register_function(lambda x, y: x-y) 60 serv.register_function(annotation) 61 serv.register_instance(ClassWithAnnotation()) [all …]
|
D | test_timeout.py | 251 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 252 support.bind_port(serv, self.localhost) 253 serv.listen() 254 self.sock.connect(serv.getsockname()) 260 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 261 support.bind_port(serv, self.localhost) 262 serv.listen() 263 self.sock.connect(serv.getsockname()) 266 serv.getsockname()) 270 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: [all …]
|
D | test_smtplib.py | 34 def server(evt, buf, serv): argument 35 serv.listen() 38 conn, addr = serv.accept() 53 serv.close() 151 def debugging_server(serv, serv_evt, client_evt): argument 167 serv.close() 178 serv.close() 209 self.serv = smtpd.DebuggingServer((HOST, 0), ('nowhere', -1), 212 self.host, self.port = self.serv.socket.getsockname()[:2] 213 serv_args = (self.serv, self.serv_evt, self.client_evt) [all …]
|
D | test_socket.py | 125 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 126 self.port = support.bind_port(self.serv) 127 self.serv.listen() 130 self.serv.close() 131 self.serv = None 136 self.serv = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 137 self.port = support.bind_port(self.serv) 140 self.serv.close() 141 self.serv = None 221 self.serv = socket.socket(socket.PF_RDS, socket.SOCK_SEQPACKET, 0) [all …]
|
D | test_xmlrpc.py | 606 serv = MyXMLRPCServer(("localhost", 0), requestHandler, 610 serv.server_bind() 612 ADDR, PORT = serv.socket.getsockname() 618 serv.server_activate() 619 serv.register_introspection_functions() 620 serv.register_multicall_functions() 621 serv.register_function(pow) 622 serv.register_function(lambda x: x, 'têšt') 623 @serv.register_function 627 @serv.register_function(name='add') [all …]
|
/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_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_nntplib.py | 18 def server(evt, serv, evil=False): argument 19 serv.listen(5) 21 conn, addr = serv.accept() 31 serv.close()
|
/external/adhd/cras/src/server/ |
D | cras_server.c | 165 static void send_client_list_to_clients(struct server_data *serv) in send_client_list_to_clients() argument 177 MIN(CRAS_MAX_ATTACHED_CLIENTS, serv->num_clients); in send_client_list_to_clients() 181 DL_FOREACH(serv->clients_head, c) { in send_client_list_to_clients() 259 struct server_data *serv; in add_select_fd() local 261 serv = (struct server_data *)server_data; in add_select_fd() 262 if (serv == NULL) in add_select_fd() 266 DL_FOREACH(serv->client_callbacks, client_cb) in add_select_fd() 280 DL_APPEND(serv->client_callbacks, new_cb); in add_select_fd() 290 struct server_data *serv; in rm_select_fd() local 293 serv = (struct server_data *)server_data; in rm_select_fd() [all …]
|
/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 | 923 struct server* serv; in set_servers() local 932 for (serv = daemon->servers; serv;) { in set_servers() 933 struct server* tmp = serv->next; in set_servers() 934 if (serv->flags & SERV_FROM_RESOLV) { in set_servers() 935 serv->next = old_servers; in set_servers() 936 old_servers = serv; in set_servers() 938 server_gone(serv); in set_servers() 940 serv->next = new_servers; in set_servers() 941 new_servers = serv; in set_servers() 943 serv = tmp; in set_servers() [all …]
|
D | forward.c | 114 struct server* serv; in search_servers() local 117 for (serv = daemon->servers; serv; serv = serv->next) in search_servers() 119 if ((serv->flags & SERV_FOR_NODOTS) && *type != SERV_HAS_DOMAIN && !strchr(qdomain, '.') && in search_servers() 121 unsigned short sflag = serv->addr.sa.sa_family == AF_INET ? F_IPV4 : F_IPV6; in search_servers() 123 if (serv->flags & SERV_NO_ADDR) in search_servers() 125 else if (serv->flags & SERV_LITERAL_ADDRESS) { in search_servers() 128 if (serv->addr.sa.sa_family == AF_INET) in search_servers() 129 *addrpp = (struct all_addr*) &serv->addr.in.sin_addr; in search_servers() 132 *addrpp = (struct all_addr*) &serv->addr.in6.sin6_addr; in search_servers() 137 } else if (serv->flags & SERV_HAS_DOMAIN) { in search_servers() [all …]
|
D | cache.c | 932 struct server *serv, *serv1; in dump_cache() local 943 for (serv = daemon->servers; serv; serv = serv->next) serv->flags &= ~SERV_COUNTED; in dump_cache() 945 for (serv = daemon->servers; serv; serv = serv->next) in dump_cache() 946 if (!(serv->flags & (SERV_NO_ADDR | SERV_LITERAL_ADDRESS | SERV_COUNTED))) { in dump_cache() 949 for (serv1 = serv; serv1; serv1 = serv1->next) in dump_cache() 951 sockaddr_isequal(&serv->addr, &serv1->addr)) { in dump_cache() 956 port = prettyprint_addr(&serv->addr, addrbuff); in dump_cache()
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_client.c | 1066 struct sockaddr_in serv, claddr; in radius_change_server() local 1131 os_memset(&serv, 0, sizeof(serv)); in radius_change_server() 1132 serv.sin_family = AF_INET; in radius_change_server() 1133 serv.sin_addr.s_addr = nserv->addr.u.v4.s_addr; in radius_change_server() 1134 serv.sin_port = htons(nserv->port); in radius_change_server() 1135 addr = (struct sockaddr *) &serv; in radius_change_server() 1136 addrlen = sizeof(serv); in radius_change_server() 1557 struct hostapd_radius_server *serv, in radius_client_dump_auth_server() argument 1587 serv->index, in radius_client_dump_auth_server() 1588 hostapd_ip_txt(&serv->addr, abuf, sizeof(abuf)), in radius_client_dump_auth_server() [all …]
|
/external/bcc/tools/ |
D | tcplife_example.txt | 9 3277 redis-serv 127.0.0.1 28527 127.0.0.1 46644 0 0 0.28 13 3277 redis-serv 127.0.0.1 28527 127.0.0.1 46648 0 0 0.27 15 3277 redis-serv 127.0.0.1 28527 127.0.0.1 46650 0 0 0.26 19 to "redis-serv", lasting about 0.25 milliseconds each connection. A couple of 47 3277 redis-serv 127.0.0.1 28527 127.0.0.1 50894 0 0 0.30 50 3277 redis-serv 127.0.0.1 28527 127.0.0.1 50896 0 0 0.24 52 3277 redis-serv 127.0.0.1 28527 127.0.0.1 50898 0 0 0.27 54 3277 redis-serv 127.0.0.1 28527 127.0.0.1 50900 0 0 0.29 56 3277 redis-serv 127.0.0.1 28527 127.0.0.1 50902 0 0 0.30 69 0.000059 3277 redis-serv 127.0.0.1 28527 127.0.0.1 47986 0 0 0.29 [all …]
|
/external/syzkaller/pkg/rpctype/ |
D | rpc.go | 32 serv := &RPCServer{ 36 return serv, nil 39 func (serv *RPCServer) Serve() { 41 conn, err := serv.ln.Accept() 47 go serv.s.ServeConn(newFlateConn(conn)) 51 func (serv *RPCServer) Addr() net.Addr { 52 return serv.ln.Addr()
|
/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/python/cpython3/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 | 226 String serv; in getDebuggeeAgentOptions() local 228 serv = "n"; in getDebuggeeAgentOptions() 230 serv = "y"; in getDebuggeeAgentOptions() 240 "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);
|
/external/curl/lib/ |
D | memdebug.h | 126 #define ogetaddrinfo(host,serv,hint,res) \ argument 127 curl_dbg_getaddrinfo(host, serv, hint, res, __LINE__, __FILE__) 130 #define getaddrinfo(host,serv,hint,res) \ argument 131 curl_dbg_getaddrinfo(host, serv, hint, res, __LINE__, __FILE__)
|
/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()
|