Home
last modified time | relevance | path

Searched refs:serv (Results 1 – 25 of 72) sorted by relevance

123

/third_party/python/Lib/test/
Dtest_docxmlrpc.py23 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 …]
Dtest_timeout.py250 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
251 socket_helper.bind_port(serv, self.localhost)
252 serv.listen()
253 self.sock.connect(serv.getsockname())
259 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
260 socket_helper.bind_port(serv, self.localhost)
261 serv.listen()
262 self.sock.connect(serv.getsockname())
265 serv.getsockname())
269 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
[all …]
Dtest_smtplib.py42 def server(evt, buf, serv): argument
43 serv.listen()
46 conn, addr = serv.accept()
61 serv.close()
190 def debugging_server(serv, serv_evt, client_evt): argument
206 serv.close()
217 serv.close()
249 self.serv = smtpd.DebuggingServer((HOST, 0), ('nowhere', -1),
252 self.host, self.port = self.serv.socket.getsockname()[:2]
253 serv_args = (self.serv, self.serv_evt, self.client_evt)
[all …]
Dtest_socket.py178 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
179 self.port = socket_helper.bind_port(self.serv)
180 self.serv.listen()
183 self.serv.close()
184 self.serv = None
189 self.serv = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
190 self.port = socket_helper.bind_port(self.serv)
193 self.serv.close()
194 self.serv = None
199 self.serv = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE)
[all …]
Dtest_xmlrpc.py628 serv = MyXMLRPCServer(("localhost", 0), requestHandler,
632 serv.server_bind()
634 ADDR, PORT = serv.socket.getsockname()
640 serv.server_activate()
641 serv.register_introspection_functions()
642 serv.register_multicall_functions()
643 serv.register_function(pow)
644 serv.register_function(lambda x: x, 'têšt')
645 @serv.register_function
649 @serv.register_function(name='add')
[all …]
Dtest_telnetlib.py13 def server(evt, serv): argument
14 serv.listen()
17 conn, addr = serv.accept()
22 serv.close()
Dtest_httplib.py1194 serv = socket.create_server((HOST, 0))
1195 self.addCleanup(serv.close)
1199 [conn, address] = serv.accept()
1213 conn = client.HTTPConnection(*serv.getsockname())
1536 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1537 self.port = socket_helper.bind_port(self.serv)
1539 self.serv.listen()
1546 self.serv.close()
1547 self.serv = None
1569 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/
Dradius_client.c1066 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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/
Dradius_client.c1076 struct sockaddr_in serv, claddr; in radius_change_server() local
1141 os_memset(&serv, 0, sizeof(serv)); in radius_change_server()
1142 serv.sin_family = AF_INET; in radius_change_server()
1143 serv.sin_addr.s_addr = nserv->addr.u.v4.s_addr; in radius_change_server()
1144 serv.sin_port = htons(nserv->port); in radius_change_server()
1145 addr = (struct sockaddr *) &serv; in radius_change_server()
1146 addrlen = sizeof(serv); in radius_change_server()
1585 struct hostapd_radius_server *serv, in radius_client_dump_auth_server() argument
1615 serv->index, in radius_client_dump_auth_server()
1616 hostapd_ip_txt(&serv->addr, abuf, sizeof(abuf)), in radius_client_dump_auth_server()
[all …]
/third_party/node/lib/internal/dns/
Dutils.js85 ArrayPrototypeForEach(servers, (serv, index) => {
86 validateString(serv, `servers[${index}]`);
87 let ipVersion = isIP(serv);
90 return ArrayPrototypePush(newSet, [ipVersion, serv, IANA_DNS_PORT]);
92 const match = StringPrototypeMatch(serv, IPv6RE);
100 StringPrototypeReplace(serv, addrSplitRE, '$2')) || IANA_DNS_PORT;
106 const addrSplitMatch = StringPrototypeMatch(serv, addrSplitRE);
120 throw new ERR_INVALID_IP_ADDRESS(serv);
/third_party/libuv/src/win/
Dtcp.c166 handle->tcp.serv.accept_reqs = NULL; in uv_tcp_init_ex()
167 handle->tcp.serv.pending_accepts = NULL; in uv_tcp_init_ex()
170 handle->tcp.serv.func_acceptex = NULL; in uv_tcp_init_ex()
172 handle->tcp.serv.processed_accepts = 0; in uv_tcp_init_ex()
241 if (!(handle->flags & UV_HANDLE_CONNECTION) && handle->tcp.serv.accept_reqs) { in uv__tcp_endgame()
244 req = &handle->tcp.serv.accept_reqs[i]; in uv__tcp_endgame()
256 uv__free(handle->tcp.serv.accept_reqs); in uv__tcp_endgame()
257 handle->tcp.serv.accept_reqs = NULL; in uv__tcp_endgame()
430 success = handle->tcp.serv.func_acceptex(handle->socket, in uv__tcp_queue_accept()
569 handle->stream.serv.connection_cb = cb; in uv__tcp_listen()
[all …]
Dpipe.c703 assert(handle->pipe.serv.accept_reqs); in uv__pipe_endgame()
704 uv__free(handle->pipe.serv.accept_reqs); in uv__pipe_endgame()
705 handle->pipe.serv.accept_reqs = NULL; in uv__pipe_endgame()
716 handle->pipe.serv.pending_instances = count; in uv_pipe_pending_instances()
736 handle->pipe.serv.pending_instances = default_pending_pipe_instances; in uv_pipe_bind()
739 handle->pipe.serv.accept_reqs = (uv_pipe_accept_t*) in uv_pipe_bind()
740 uv__malloc(sizeof(uv_pipe_accept_t) * handle->pipe.serv.pending_instances); in uv_pipe_bind()
741 if (!handle->pipe.serv.accept_reqs) { in uv_pipe_bind()
745 for (i = 0; i < handle->pipe.serv.pending_instances; i++) { in uv_pipe_bind()
746 req = &handle->pipe.serv.accept_reqs[i]; in uv_pipe_bind()
[all …]
/third_party/openssl/test/
Dssl_test_ctx_test.c50 static int serverconf_eq(SSL_TEST_SERVER_CONF *serv, in serverconf_eq() argument
53 if (!TEST_int_eq(serv->servername_callback, serv2->servername_callback) in serverconf_eq()
54 || !TEST_str_eq(serv->npn_protocols, serv2->npn_protocols) in serverconf_eq()
55 || !TEST_str_eq(serv->alpn_protocols, serv2->alpn_protocols) in serverconf_eq()
56 || !TEST_int_eq(serv->broken_session_ticket, in serverconf_eq()
58 || !TEST_str_eq(serv->session_ticket_app_data, in serverconf_eq()
60 || !TEST_int_eq(serv->cert_status, serv2->cert_status)) in serverconf_eq()
/third_party/python/Modules/
Dgetnameinfo.c89 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);
/third_party/openssl/crypto/bio/
Dbio_addr.c212 char host[NI_MAXHOST] = "", serv[NI_MAXSERV] = ""; in addr_strings() local
220 host, sizeof(host), serv, sizeof(serv), in addr_strings()
240 if (serv[0] == '\0') { in addr_strings()
241 BIO_snprintf(serv, sizeof(serv), "%d", in addr_strings()
248 *service = OPENSSL_strdup(serv); in addr_strings()
254 char serv[6]; /* port is 16 bits => max 5 decimal digits */ in addr_strings() local
255 BIO_snprintf(serv, sizeof(serv), "%d", ntohs(ap->s_in.sin_port)); in addr_strings()
256 *service = OPENSSL_strdup(serv); in addr_strings()
/third_party/musl/src/network/
Dgetaddrinfo.c12 int getaddrinfo(const char *restrict host, const char *restrict serv, const struct addrinfo *restri… in getaddrinfo() argument
15 if (dns_get_addr_info_from_netsys_cache(host, serv, hint, res) == 0) { in getaddrinfo()
28 if (!host && !serv) return EAI_NONAME; in getaddrinfo()
95 nservs = __lookup_serv(ports, serv, proto, socktype, flags); in getaddrinfo()
142 dns_set_addr_info_to_netsys_cache(host, serv, hint, *res); in getaddrinfo()
Dres_cache.c43 dns_set_addr_info_to_netsys_cache(const char *restrict host, const char *restrict serv, const struc… in dns_set_addr_info_to_netsys_cache() argument
51 struct param_wrapper param = {(char *) host, (char *) serv, (struct addrinfo *) hint}; in dns_set_addr_info_to_netsys_cache()
61 int dns_get_addr_info_from_netsys_cache(const char *restrict host, const char *restrict serv, in dns_get_addr_info_from_netsys_cache() argument
71 struct param_wrapper param = {(char *) host, (char *) serv, (struct addrinfo *) hint}; in dns_get_addr_info_from_netsys_cache()
Dlookup.h104 char *serv; member
121 dns_set_addr_info_to_netsys_cache(const char *__restrict host, const char *__restrict serv,
125 int dns_get_addr_info_from_netsys_cache(const char *__restrict host, const char *__restrict serv,
Dgetnameinfo.c123 char *restrict serv, socklen_t servlen, in getnameinfo() argument
186 if (serv && servlen) { in getnameinfo()
196 strcpy(serv, p); in getnameinfo()
/third_party/toybox/toys/pending/
Dtcpsvd.c355 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()
/third_party/ffmpeg/libavformat/
Dos_support.c143 char *serv, int servlen, int flags) in ff_getnameinfo() argument
149 if (!host && !serv) in ff_getnameinfo()
171 if (serv && servlen > 0) { in ff_getnameinfo()
174 snprintf(serv, servlen, "%d", ntohs(sin->sin_port)); in ff_getnameinfo()
/third_party/musl/porting/liteos_a/user/src/network/
Dgetnameinfo.c123 char *restrict serv, socklen_t servlen, in getnameinfo() argument
186 if (serv && servlen) { in getnameinfo()
196 strcpy(serv, p); in getnameinfo()
/third_party/musl/porting/linux/user/src/network/
Dgetnameinfo.c144 char *restrict serv, socklen_t servlen, in getnameinfo() argument
207 if (serv && servlen) { in getnameinfo()
217 strcpy(serv, p); in getnameinfo()
/third_party/mbedtls/tests/docker/bionic/
DDockerfile115 ENV GNUTLS_LEGACY_SERV=/usr/local/gnutls-3.3.8/bin/gnutls-serv
138 ENV GNUTLS_SERV=/usr/local/gnutls-3.4.10/bin/gnutls-serv
162 ENV GNUTLS_NEXT_SERV=/usr/local/gnutls-3.7.2/bin/gnutls-serv
/third_party/libuv/include/uv/
Dwin.h433 struct { uv_stream_server_fields } serv; \
450 struct { uv_tcp_server_fields } serv; \
490 struct { uv_pipe_server_fields } serv; \

123