Searched refs:sock (Results 1 - 25 of 483) sorted by relevance

1234567891011>>

/netbsd-current/external/bsd/wpa/dist/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
16 int linux_br_add(int sock, const char *brname);
17 int linux_br_del(int sock, const char *brname);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
/netbsd-current/sys/external/bsd/libnv/dist/
H A Dmsgio.h45 int cred_send(int sock);
46 int cred_recv(int sock, struct cmsgcred *cred);
48 int fd_send(int sock, const int *fds, size_t nfds);
49 int fd_recv(int sock, int *fds, size_t nfds);
51 int buf_send(int sock, void *buf, size_t size);
52 int buf_recv(int sock, void *buf, size_t size);
/netbsd-current/external/mpl/bind/dist/bin/tests/system/
H A Dtestsock6.pl19 my $sock;
20 $sock = IO::Socket::INET6->new(LocalAddr => $addr,
24 close($sock);
H A Dsend.pl27 my $sock = IO::Socket::INET->new(PeerAddr => $host, PeerPort => $port,
30 $sock->syswrite($_, length $_);
33 $sock->close;
/netbsd-current/external/mpl/bind/dist/lib/isc/netmgr/
H A Dtcp.c58 tcp_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
61 tcp_close_direct(isc_nmsocket_t *sock);
64 tcp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
81 failed_accept_cb(isc_nmsocket_t *sock, isc_result_t eresult);
84 stop_tcp_parent(isc_nmsocket_t *sock);
86 stop_tcp_child(isc_nmsocket_t *sock);
89 failed_accept_cb(isc_nmsocket_t *sock, isc_result_t eresult) { argument
90 REQUIRE(atomic_load(&sock->accepting));
91 REQUIRE(sock->server);
98 if (sock
119 tcp_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
196 isc_nmsocket_t *sock = ievent->sock; local
226 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)uvreq->handle); local
311 isc_nmsocket_t *sock = NULL; local
383 uv_os_sock_t sock; local
405 start_tcp_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
439 enqueue_stoplistening(isc_nmsocket_t *sock) argument
452 isc_nmsocket_t *sock = NULL; local
527 isc_nmsocket_t *sock = NULL; local
665 isc__nm_tcp_stoplistening(isc_nmsocket_t *sock) argument
685 isc_nmsocket_t *sock = ievent->sock; local
701 isc__nm_tcp_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result) argument
736 isc_nmsocket_t *sock = handle->sock; local
770 isc_nmsocket_t *sock = ievent->sock; local
795 isc_nmsocket_t *sock = NULL; local
821 isc_nmsocket_t *sock = ievent->sock; local
837 isc_nmsocket_t *sock = handle->sock; local
866 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)stream); local
929 isc_nmsocket_t *sock = (isc_nmsocket_t *)sock0; local
948 isc_nmsocket_t *sock = ievent->sock; local
1078 isc_nmsocket_t *sock = handle->sock; local
1103 isc_nmsocket_t *sock = NULL; local
1130 isc_nmsocket_t *sock = ievent->sock; local
1152 tcp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
1181 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1202 tcp_close_sock(isc_nmsocket_t *sock) argument
1226 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1234 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1247 stop_tcp_child(isc_nmsocket_t *sock) argument
1265 stop_tcp_parent(isc_nmsocket_t *sock) argument
1298 tcp_close_direct(isc_nmsocket_t *sock) argument
1325 isc__nm_tcp_close(isc_nmsocket_t *sock) argument
1353 isc_nmsocket_t *sock = ievent->sock; local
1365 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1377 isc__nm_tcp_shutdown(isc_nmsocket_t *sock) argument
1420 isc_nmsocket_t *sock = NULL; local
1438 isc_nmsocket_t *sock = ievent->sock; local
[all...]
H A Dudp.c65 udp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req,
82 udp_close_direct(isc_nmsocket_t *sock);
85 stop_udp_parent(isc_nmsocket_t *sock);
87 stop_udp_child(isc_nmsocket_t *sock);
92 uv_os_sock_t sock; local
94 result = isc__nm_socket(sa_family, SOCK_DGRAM, 0, &sock);
97 (void)isc__nm_socket_incoming_cpu(sock);
98 (void)isc__nm_socket_disable_pmtud(sock, sa_family);
99 (void)isc__nm_socket_v6only(sock, sa_family);
101 result = isc__nm_socket_reuse(sock);
113 start_udp_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
144 enqueue_stoplistening(isc_nmsocket_t *sock) argument
155 isc_nmsocket_t *sock = NULL; local
256 route_connect_direct(isc_nmsocket_t *sock) argument
315 isc_nmsocket_t *sock = ievent->sock; local
351 isc_nmsocket_t *sock = NULL; local
422 isc_nmsocket_t *sock = NULL; local
522 isc__nm_udp_stoplistening(isc_nmsocket_t *sock) argument
545 isc_nmsocket_t *sock = ievent->sock; local
568 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)handle); local
692 isc_nmsocket_t *sock = handle->sock; local
773 isc_nmsocket_t *sock = ievent->sock; local
796 isc_nmsocket_t *sock = NULL; local
818 udp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req, isc_sockaddr_t *peer) argument
854 udp_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
942 isc_nmsocket_t *sock = ievent->sock; local
977 isc_nmsocket_t *sock = NULL; local
1058 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)handle); local
1076 isc__nm_udp_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result) argument
1126 isc_nmsocket_t *sock = ievent->sock; local
1156 isc_nmsocket_t *sock = handle->sock; local
1179 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1201 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1228 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1239 stop_udp_child(isc_nmsocket_t *sock) argument
1257 stop_udp_parent(isc_nmsocket_t *sock) argument
1290 udp_close_direct(isc_nmsocket_t *sock) argument
1301 isc_nmsocket_t *sock = ievent->sock; local
1311 isc__nm_udp_close(isc_nmsocket_t *sock) argument
1333 isc__nm_udp_shutdown(isc_nmsocket_t *sock) argument
1378 isc_nmsocket_t *sock = NULL; local
1397 isc_nmsocket_t *sock = NULL; local
[all...]
H A Dtlsdns.c46 tls_error(isc_nmsocket_t *sock, isc_result_t result);
49 tlsdns_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
52 tlsdns_close_direct(isc_nmsocket_t *sock);
55 tlsdns_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
72 stop_tlsdns_parent(isc_nmsocket_t *sock);
74 stop_tlsdns_child(isc_nmsocket_t *sock);
77 async_tlsdns_cycle(isc_nmsocket_t *sock) __attribute__((unused));
80 tls_cycle(isc_nmsocket_t *sock);
83 call_pending_send_callbacks(isc_nmsocket_t *sock, const isc_result_t result);
86 tlsdns_keep_client_tls_session(isc_nmsocket_t *sock);
94 peer_verification_has_failed(isc_nmsocket_t *sock) argument
118 tlsdns_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
205 isc_nmsocket_t *sock = ievent->sock; local
236 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)uvreq->handle); local
361 isc_nmsocket_t *sock = NULL; local
453 uv_os_sock_t sock; local
475 start_tlsdns_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
513 enqueue_stoplistening(isc_nmsocket_t *sock) argument
527 isc_nmsocket_t *sock = NULL; local
606 isc_nmsocket_t *sock = NULL; local
744 isc__nm_tlsdns_stoplistening(isc_nmsocket_t *sock) argument
762 tls_shutdown(isc_nmsocket_t *sock) argument
775 isc_nmsocket_t *sock = ievent->sock; local
839 isc_nmsocket_t *sock = ievent->sock; local
855 isc__nm_tlsdns_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result, bool async) argument
909 isc_nmsocket_t *sock = handle->sock; local
944 isc_nmsocket_t *sock = ievent->sock; local
974 isc__nm_tlsdns_processbuffer(isc_nmsocket_t *sock) argument
1079 tls_cycle_input(isc_nmsocket_t *sock) argument
1227 tls_error(isc_nmsocket_t *sock, isc_result_t result) argument
1253 call_pending_send_callbacks(isc_nmsocket_t *sock, const isc_result_t result) argument
1265 free_senddata(isc_nmsocket_t *sock, const isc_result_t result) argument
1283 isc_nmsocket_t *sock = uvreq->sock; local
1305 tls_cycle_output(isc_nmsocket_t *sock) argument
1385 tls_pop_error(isc_nmsocket_t *sock) argument
1403 tls_cycle(isc_nmsocket_t *sock) argument
1457 async_tlsdns_cycle(isc_nmsocket_t *sock) argument
1477 isc_nmsocket_t *sock; local
1495 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)stream); local
1555 isc_nmsocket_t *sock = (isc_nmsocket_t *)sock0; local
1753 isc_nmsocket_t *sock = NULL; local
1786 isc_nmsocket_t *sock = ievent->sock; local
1809 tlsdns_send_enqueue(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
1817 tlsdns_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
1961 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1990 tlsdns_close_sock(isc_nmsocket_t *sock) argument
2031 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
2039 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
2054 stop_tlsdns_child(isc_nmsocket_t *sock) argument
2072 stop_tlsdns_parent(isc_nmsocket_t *sock) argument
2106 tlsdns_close_direct(isc_nmsocket_t *sock) argument
2129 isc__nm_tlsdns_close(isc_nmsocket_t *sock) argument
2159 isc_nmsocket_t *sock = ievent->sock; local
2171 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
2183 isc__nm_tlsdns_shutdown(isc_nmsocket_t *sock) argument
2257 isc_nmsocket_t *sock = NULL; local
2276 isc_nmsocket_t *sock = ievent->sock; local
2302 isc__nm_tlsdns_xfr_checkperm(isc_nmsocket_t *sock) argument
2315 isc_nmsocket_t *sock = NULL; local
2339 isc__nm_tlsdns_cleanup_data(isc_nmsocket_t *sock) argument
2357 tlsdns_keep_client_tls_session(isc_nmsocket_t *sock) argument
[all...]
H A Dtlsstream.c66 tls_failed_read_cb(isc_nmsocket_t *sock, const isc_result_t result);
69 tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
77 tls_close_direct(isc_nmsocket_t *sock);
80 async_tls_do_bio(isc_nmsocket_t *sock);
92 tls_keep_client_tls_session(isc_nmsocket_t *sock);
103 inactive(isc_nmsocket_t *sock) { argument
104 return (!isc__nmsocket_active(sock) || atomic_load(&sock->closing) ||
105 sock->outerhandle == NULL ||
106 !isc__nmsocket_active(sock
114 tls_call_connect_cb(isc_nmsocket_t *sock, isc_nmhandle_t *handle, const isc_result_t result) argument
191 tls_failed_read_cb(isc_nmsocket_t *sock, const isc_result_t result) argument
236 async_tls_do_bio(isc_nmsocket_t *sock) argument
244 tls_send_outgoing(isc_nmsocket_t *sock, bool finish, isc_nmhandle_t *tlshandle, isc_nm_cb_t cb, void *cbarg) argument
306 tls_process_outgoing(isc_nmsocket_t *sock, bool finish, isc__nm_uvreq_t *send_data) argument
332 tls_try_handshake(isc_nmsocket_t *sock, isc_result_t *presult) argument
377 tls_try_to_close_unused_socket(isc_nmsocket_t *sock) argument
394 tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data, isc__nm_uvreq_t *send_data, bool finish) argument
652 initialize_tls(isc_nmsocket_t *sock, bool server) argument
812 isc_nmsocket_t *sock = ievent->sock; local
838 isc_nmsocket_t *sock = NULL; local
866 isc_nmsocket_t *sock = ievent->sock; local
878 isc_nmsocket_t *sock = NULL; local
933 tls_close_direct(isc_nmsocket_t *sock) argument
957 isc__nm_tls_close(isc_nmsocket_t *sock) argument
977 isc_nmsocket_t *sock = ievent->sock; local
987 isc__nm_tls_stoplistening(isc_nmsocket_t *sock) argument
1096 tls_cancelread(isc_nmsocket_t *sock) argument
1107 isc_nmsocket_t *sock = NULL; local
1129 isc_nmsocket_t *sock = ievent->sock; local
1149 isc__nm_tls_cleanup_data(isc_nmsocket_t *sock) argument
1190 isc_nmsocket_t *sock = NULL; local
1205 isc_nmsocket_t *sock = NULL; local
1220 isc_nmsocket_t *sock = NULL; local
1237 isc_nmsocket_t *sock = NULL; local
1253 isc_nmsocket_t *sock = NULL; local
1326 tls_keep_client_tls_session(isc_nmsocket_t *sock) argument
[all...]
H A Dtcpdns.c58 tcpdns_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
61 tcpdns_close_direct(isc_nmsocket_t *sock);
79 stop_tcpdns_parent(isc_nmsocket_t *sock);
81 stop_tcpdns_child(isc_nmsocket_t *sock);
84 tcpdns_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) { argument
89 REQUIRE(VALID_NMSOCK(sock));
93 REQUIRE(sock->tid == isc_nm_tid());
95 worker = &sock->mgr->workers[sock->tid];
97 atomic_store(&sock
167 isc_nmsocket_t *sock = ievent->sock; local
196 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)uvreq->handle); local
274 isc_nmsocket_t *sock = NULL; local
346 uv_os_sock_t sock; local
368 enqueue_stoplistening(isc_nmsocket_t *sock) argument
376 start_tcpdns_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
417 isc_nmsocket_t *sock = NULL; local
494 isc_nmsocket_t *sock = NULL; local
631 isc__nm_tcpdns_stoplistening(isc_nmsocket_t *sock) argument
652 isc_nmsocket_t *sock = ievent->sock; local
668 isc__nm_tcpdns_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result) argument
703 isc_nmsocket_t *sock = handle->sock; local
737 isc_nmsocket_t *sock = ievent->sock; local
767 isc__nm_tcpdns_processbuffer(isc_nmsocket_t *sock) argument
868 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)stream); local
933 isc_nmsocket_t *sock = (isc_nmsocket_t *)sock0; local
1111 isc_nmsocket_t *sock = NULL; local
1140 isc_nmsocket_t *sock = NULL; local
1168 isc_nmsocket_t *sock = NULL; local
1244 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1266 tcpdns_close_sock(isc_nmsocket_t *sock) argument
1290 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1299 isc_nmsocket_t *sock = uv_handle_get_data(timer); local
1314 stop_tcpdns_child(isc_nmsocket_t *sock) argument
1332 stop_tcpdns_parent(isc_nmsocket_t *sock) argument
1365 tcpdns_close_direct(isc_nmsocket_t *sock) argument
1386 isc__nm_tcpdns_close(isc_nmsocket_t *sock) argument
1415 isc_nmsocket_t *sock = ievent->sock; local
1427 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1439 isc__nm_tcpdns_shutdown(isc_nmsocket_t *sock) argument
1482 isc_nmsocket_t *sock = NULL; local
1501 isc_nmsocket_t *sock = ievent->sock; local
[all...]
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/netmgr/
H A Dudp.c39 udp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req,
56 udp_close_direct(isc_nmsocket_t *sock);
59 stop_udp_parent(isc_nmsocket_t *sock);
61 stop_udp_child(isc_nmsocket_t *sock);
66 uv_os_sock_t sock; local
68 result = isc__nm_socket(sa_family, SOCK_DGRAM, 0, &sock);
71 (void)isc__nm_socket_incoming_cpu(sock);
72 (void)isc__nm_socket_disable_pmtud(sock, sa_family);
74 result = isc__nm_socket_reuse(sock);
79 result = isc__nm_socket_reuse_lb(sock);
88 start_udp_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
124 enqueue_stoplistening(isc_nmsocket_t *sock) argument
135 isc_nmsocket_t *sock = NULL; local
219 isc_nmsocket_t *sock = NULL; local
333 isc__nm_udp_stoplistening(isc_nmsocket_t *sock) argument
356 isc_nmsocket_t *sock = ievent->sock; local
379 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)handle); local
497 isc_nmsocket_t *sock = handle->sock; local
582 isc_nmsocket_t *sock = ievent->sock; local
605 isc_nmsocket_t *sock = NULL; local
627 udp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req, isc_sockaddr_t *peer) argument
663 udp_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
754 isc_nmsocket_t *sock = ievent->sock; local
789 isc_nmsocket_t *sock = NULL; local
868 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)handle); local
885 isc__nm_udp_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result) argument
935 isc_nmsocket_t *sock = ievent->sock; local
963 isc_nmsocket_t *sock = handle->sock; local
987 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1009 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1036 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1047 stop_udp_child(isc_nmsocket_t *sock) argument
1065 stop_udp_parent(isc_nmsocket_t *sock) argument
1098 udp_close_direct(isc_nmsocket_t *sock) argument
1109 isc_nmsocket_t *sock = ievent->sock; local
1119 isc__nm_udp_close(isc_nmsocket_t *sock) argument
1141 isc__nm_udp_shutdown(isc_nmsocket_t *sock) argument
1182 isc_nmsocket_t *sock = NULL; local
1201 isc_nmsocket_t *sock = NULL; local
[all...]
H A Dtcp.c58 tcp_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
61 tcp_close_direct(isc_nmsocket_t *sock);
64 tcp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
81 failed_accept_cb(isc_nmsocket_t *sock, isc_result_t eresult);
84 stop_tcp_parent(isc_nmsocket_t *sock);
86 stop_tcp_child(isc_nmsocket_t *sock);
89 failed_accept_cb(isc_nmsocket_t *sock, isc_result_t eresult) { argument
90 REQUIRE(sock->accepting);
91 REQUIRE(sock->server);
98 if (sock
119 tcp_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
197 isc_nmsocket_t *sock = ievent->sock; local
227 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)uvreq->handle); local
293 isc_nmsocket_t *sock = NULL; local
362 uv_os_sock_t sock; local
385 start_tcp_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
424 enqueue_stoplistening(isc_nmsocket_t *sock) argument
437 isc_nmsocket_t *sock = NULL; local
520 isc_nmsocket_t *sock = NULL; local
666 isc__nm_tcp_stoplistening(isc_nmsocket_t *sock) argument
686 isc_nmsocket_t *sock = ievent->sock; local
702 isc__nm_tcp_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result) argument
737 isc_nmsocket_t *sock = handle->sock; local
773 isc_nmsocket_t *sock = ievent->sock; local
798 isc_nmsocket_t *sock = NULL; local
824 isc_nmsocket_t *sock = ievent->sock; local
840 isc_nmsocket_t *sock = handle->sock; local
869 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)stream); local
933 isc_nmsocket_t *sock = (isc_nmsocket_t *)sock0; local
952 isc_nmsocket_t *sock = ievent->sock; local
1082 isc_nmsocket_t *sock = handle->sock; local
1107 isc_nmsocket_t *sock = NULL; local
1134 isc_nmsocket_t *sock = ievent->sock; local
1156 tcp_send_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) argument
1185 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1206 tcp_close_sock(isc_nmsocket_t *sock) argument
1230 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1238 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1251 stop_tcp_child(isc_nmsocket_t *sock) argument
1269 stop_tcp_parent(isc_nmsocket_t *sock) argument
1302 tcp_close_direct(isc_nmsocket_t *sock) argument
1329 isc__nm_tcp_close(isc_nmsocket_t *sock) argument
1357 isc_nmsocket_t *sock = ievent->sock; local
1369 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1381 isc__nm_tcp_shutdown(isc_nmsocket_t *sock) argument
1420 isc_nmsocket_t *sock = NULL; local
1438 isc_nmsocket_t *sock = ievent->sock; local
[all...]
H A Dtcpdns.c58 tcpdns_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req);
61 tcpdns_close_direct(isc_nmsocket_t *sock);
79 stop_tcpdns_parent(isc_nmsocket_t *sock);
81 stop_tcpdns_child(isc_nmsocket_t *sock);
84 tcpdns_connect_direct(isc_nmsocket_t *sock, isc__nm_uvreq_t *req) { argument
89 REQUIRE(VALID_NMSOCK(sock));
93 REQUIRE(sock->tid == isc_nm_tid());
95 worker = &sock->mgr->workers[sock->tid];
97 atomic_store(&sock
168 isc_nmsocket_t *sock = ievent->sock; local
197 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)uvreq->handle); local
256 isc_nmsocket_t *sock = NULL; local
325 uv_os_sock_t sock; local
348 enqueue_stoplistening(isc_nmsocket_t *sock) argument
356 start_tcpdns_child(isc_nm_t *mgr, isc_sockaddr_t *iface, isc_nmsocket_t *sock, uv_os_sock_t fd, int tid) argument
402 isc_nmsocket_t *sock = NULL; local
487 isc_nmsocket_t *sock = NULL; local
632 isc__nm_tcpdns_stoplistening(isc_nmsocket_t *sock) argument
653 isc_nmsocket_t *sock = ievent->sock; local
669 isc__nm_tcpdns_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result) argument
704 isc_nmsocket_t *sock = handle->sock; local
740 isc_nmsocket_t *sock = ievent->sock; local
770 isc__nm_tcpdns_processbuffer(isc_nmsocket_t *sock) argument
846 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)stream); local
912 isc_nmsocket_t *sock = (isc_nmsocket_t *)sock0; local
1091 isc_nmsocket_t *sock = handle->sock; local
1117 isc_nmsocket_t *sock = NULL; local
1151 isc_nmsocket_t *sock = ievent->sock; local
1222 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1244 tcpdns_close_sock(isc_nmsocket_t *sock) argument
1268 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1277 isc_nmsocket_t *sock = uv_handle_get_data(timer); local
1292 stop_tcpdns_child(isc_nmsocket_t *sock) argument
1310 stop_tcpdns_parent(isc_nmsocket_t *sock) argument
1343 tcpdns_close_direct(isc_nmsocket_t *sock) argument
1364 isc__nm_tcpdns_close(isc_nmsocket_t *sock) argument
1393 isc_nmsocket_t *sock = ievent->sock; local
1405 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
1417 isc__nm_tcpdns_shutdown(isc_nmsocket_t *sock) argument
1456 isc_nmsocket_t *sock = NULL; local
1475 isc_nmsocket_t *sock = ievent->sock; local
1487 isc_nmsocket_t *sock = NULL; local
[all...]
H A Dnetmgr.c145 nmsocket_maybe_destroy(isc_nmsocket_t *sock FLARG);
147 nmhandle_free(isc_nmsocket_t *sock, isc_nmhandle_t *handle);
181 isc__nmsocket_reset(isc_nmsocket_t *sock);
630 REQUIRE(VALID_NMSOCK(handle->sock));
632 handle->sock->write_timeout = write_timeout;
1153 isc__nmsocket_active(isc_nmsocket_t *sock) { argument
1154 REQUIRE(VALID_NMSOCK(sock));
1155 if (sock->parent != NULL) {
1156 return (atomic_load(&sock->parent->active));
1159 return (atomic_load(&sock
1163 isc__nmsocket_deactivate(isc_nmsocket_t *sock) argument
1176 isc___nmsocket_attach(isc_nmsocket_t *sock, isc_nmsocket_t **target FLARG) argument
1202 nmsocket_cleanup(isc_nmsocket_t *sock, bool dofree FLARG) argument
1407 isc_nmsocket_t *sock = *sockp, *rsock = NULL; local
1442 isc___nmsocket_init(isc_nmsocket_t *sock, isc_nm_t *mgr, isc_nmsocket_type type, isc_sockaddr_t *iface FLARG) argument
1528 isc__nmsocket_clearcb(isc_nmsocket_t *sock) argument
1541 isc__nm_free_uvbuf(isc_nmsocket_t *sock, const uv_buf_t *buf) argument
1553 alloc_handle(isc_nmsocket_t *sock) argument
1568 isc___nmhandle_get(isc_nmsocket_t *sock, isc_sockaddr_t *peer, isc_sockaddr_t *local FLARG) argument
1660 nmhandle_free(isc_nmsocket_t *sock, isc_nmhandle_t *handle) argument
1675 nmhandle_deactivate(isc_nmsocket_t *sock, isc_nmhandle_t *handle) argument
1704 isc_nmsocket_t *sock = NULL; local
1739 isc_nmsocket_t *sock = NULL; local
1817 isc__nm_alloc_dnsbuf(isc_nmsocket_t *sock, size_t len) argument
1834 isc__nm_failed_send_cb(isc_nmsocket_t *sock, isc__nm_uvreq_t *req, isc_result_t eresult) argument
1847 isc__nm_failed_accept_cb(isc_nmsocket_t *sock, isc_result_t eresult) argument
1877 isc__nm_failed_connect_cb(isc_nmsocket_t *sock, isc__nm_uvreq_t *req, isc_result_t eresult, bool async) argument
1897 isc__nm_failed_read_cb(isc_nmsocket_t *sock, isc_result_t result, bool async) argument
1919 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)uvreq->handle); local
1970 isc_nmsocket_t *sock = NULL; local
1983 isc_nmsocket_t *sock = uv_handle_get_data((uv_handle_t *)timer); local
2007 isc__nmsocket_timer_restart(isc_nmsocket_t *sock) argument
2037 isc__nmsocket_timer_running(isc_nmsocket_t *sock) argument
2044 isc__nmsocket_timer_start(isc_nmsocket_t *sock) argument
2055 isc__nmsocket_timer_stop(isc_nmsocket_t *sock) argument
2067 isc__nm_get_read_req(isc_nmsocket_t *sock, isc_sockaddr_t *sockaddr) argument
2098 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
2133 isc__nm_start_reading(isc_nmsocket_t *sock) argument
2168 isc__nm_stop_reading(isc_nmsocket_t *sock) argument
2192 isc__nm_closing(isc_nmsocket_t *sock) argument
2197 isc__nmsocket_closing(isc_nmsocket_t *sock) argument
2204 processbuffer(isc_nmsocket_t *sock) argument
2226 isc__nm_process_sock_buffer(isc_nmsocket_t *sock) argument
2280 isc_nmsocket_t *sock = (isc_nmsocket_t *)arg; local
2322 isc_nmsocket_t *sock = NULL; local
2509 isc_nmsocket_t *sock = handle->sock; local
2524 isc_nmsocket_t *sock = handle->sock; local
2536 isc_nm_stoplistening(isc_nmsocket_t *sock) argument
2555 isc__nm_connectcb(isc_nmsocket_t *sock, isc__nm_uvreq_t *uvreq, isc_result_t eresult, bool async) argument
2578 isc_nmsocket_t *sock = ievent->sock; local
2596 isc__nm_readcb(isc_nmsocket_t *sock, isc__nm_uvreq_t *uvreq, isc_result_t eresult) argument
2619 isc_nmsocket_t *sock = ievent->sock; local
2640 isc__nm_sendcb(isc_nmsocket_t *sock, isc__nm_uvreq_t *uvreq, isc_result_t eresult, bool async) argument
2663 isc_nmsocket_t *sock = ievent->sock; local
2682 isc_nmsocket_t *sock = ievent->sock; local
2709 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
2716 isc__nmsocket_reset(isc_nmsocket_t *sock) argument
2749 isc__nmsocket_shutdown(isc_nmsocket_t *sock) argument
2772 isc_nmsocket_t *sock = uv_handle_get_data(handle); local
2887 SOCKET sock; local
2921 isc__nm_closesocket(uv_os_sock_t sock) argument
3232 isc_nmsocket_t *sock = NULL; local
3357 nmsocket_dump(isc_nmsocket_t *sock) argument
3398 isc_nmsocket_t *sock = NULL; local
[all...]
/netbsd-current/external/bsd/openldap/dist/servers/slapd/back-sock/
H A Dsearchexample.conf21 database sock
23 socketpath /tmp/example.sock
/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dinet_connect.c93 int sock; local
115 for (sock = -1, found = 0, res = res0; res != 0; res = res->ai_next) {
135 if ((sock = inet_connect_one(res, block_mode, timeout)) < 0) {
144 return (sock);
151 int sock; local
156 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
157 if (sock < 0)
164 set_inet_windowsize(sock, inet_windowsize);
170 non_blocking(sock, NON_BLOCKING);
171 if (timed_connect(sock, re
[all...]
H A Dtimed_connect.c69 int timed_connect(int sock, struct sockaddr *sa, int len, int timeout) argument
84 if (sane_connect(sock, sa, len) == 0)
93 if (write_wait(sock, timeout) < 0)
102 if (getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *) &error, &error_len) < 0)
H A Dsane_connect.c11 /* int sane_connect(sock, buf, len)
12 /* int sock;
46 int sane_connect(int sock, struct sockaddr *sa, SOCKADDR_SIZE len) argument
63 (void) setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE,
66 return (connect(sock, sa, len));
H A Dinet_windowsize.c13 /* void set_inet_windowsize(sock, windowsize)
14 /* int sock;
28 /* .IP sock
65 void set_inet_windowsize(int sock, int windowsize) argument
78 if (setsockopt(sock, SOL_SOCKET, SO_SNDBUF, (void *) &windowsize,
81 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (void *) &windowsize,
H A Dunix_connect.c66 int sock; local
83 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
90 non_blocking(sock, NON_BLOCKING);
91 if (timed_connect(sock, (struct sockaddr *) &sun, sizeof(sun), timeout) < 0) {
92 close(sock);
96 non_blocking(sock, block_mode);
97 return (sock);
104 non_blocking(sock, block_mode);
105 if (sane_connect(sock, (struct sockaddr *) &sun, sizeof(sun)) < 0
107 close(sock);
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dsend_recv.c46 krb5_storage *sock; local
48 assert(context->sock != rk_INVALID_SOCKET);
64 sock = krb5_storage_from_socket(context->sock);
65 if(sock == NULL) {
71 ret = krb5_store_data(sock, out);
74 krb5_storage_free(sock);
84 krb5_storage *sock; local
86 sock = krb5_storage_from_socket(context->sock);
[all...]
/netbsd-current/external/mpl/bind/dist/bin/tests/system/tcp/
H A Dtests_tcp.py40 sock = socket.create_connection((host, port), timeout=10)
41 sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, True)
42 return sock
46 with create_socket("10.53.0.7", named_port) as sock:
48 (sbytes, stime) = dns.query.send_tcp(sock, msg, timeout())
49 (response, rtime) = dns.query.receive_tcp(sock, timeout())
56 sock.send(struct.pack("!H", 11))
57 sock.send(struct.pack("!s", b"0123456789a"))
61 (sbytes, stime) = dns.query.send_tcp(sock, msg, timeout())
62 (response, rtime) = dns.query.receive_tcp(sock, timeou
[all...]
/netbsd-current/external/bsd/ntp/dist/lib/isc/
H A Dsocket_api.c107 isc_socket_attach(isc_socket_t *sock, isc_socket_t **socketp) { argument
108 REQUIRE(ISCAPI_SOCKET_VALID(sock));
111 sock->methods->attach(sock, socketp);
113 ENSURE(*socketp == sock);
126 isc_socket_bind(isc_socket_t *sock, isc_sockaddr_t *sockaddr, argument
129 REQUIRE(ISCAPI_SOCKET_VALID(sock));
131 return (sock->methods->bind(sock, sockaddr, options));
135 isc_socket_sendto(isc_socket_t *sock, isc_region_ argument
146 isc_socket_connect(isc_socket_t *sock, isc_sockaddr_t *addr, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
155 isc_socket_recv(isc_socket_t *sock, isc_region_t *region, unsigned int minimum, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
164 isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, unsigned int how) argument
171 isc_socket_getsockname(isc_socket_t *sock, isc_sockaddr_t *addressp) argument
178 isc_socket_ipv6only(isc_socket_t *sock, isc_boolean_t yes) argument
185 isc_socket_gettype(isc_socket_t *sock) argument
213 isc_socket_fdwatchpoke(isc_socket_t *sock, int flags) argument
221 isc_socket_dup(isc_socket_t *sock, isc_socket_t **socketp) argument
229 isc_socket_getfd(isc_socket_t *sock) argument
[all...]
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dbind.c34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = bind (sock, sockaddr, len);
H A Dlisten.c34 SOCKET sock = FD_TO_SOCKET (fd); local
36 if (sock == INVALID_SOCKET)
43 int r = listen (sock, backlog);
/netbsd-current/external/bsd/ntp/dist/lib/isc/win32/
H A Dsocket.c96 #define CONSISTENT(sock) consistent(sock)
98 #define CONSISTENT(sock) do {} while (0)
100 static void consistent(isc_socket_t *sock);
280 #define _set_state(sock, _state) do { (sock)->state = (_state); (sock)->state_lineno = __LINE__; } while (0)
364 static isc_boolean_t senddone_is_active(isc_socket_t *sock, isc_socketevent_t *dev);
365 static isc_boolean_t acceptdone_is_active(isc_socket_t *sock, isc_socket_newconnev_t *dev);
366 static isc_boolean_t connectdone_is_active(isc_socket_t *sock, isc_socket_connev_
382 sock_dump(isc_socket_t *sock) argument
546 iocompletionport_update(isc_socket_t *sock) argument
592 socket_close(isc_socket_t *sock) argument
612 SOCKET sock; local
674 internal_sendmsg(isc_socket_t *sock, IoCompletionInfo *lpo, struct msghdr *messagehdr, int flags, int *Error) argument
720 queue_receive_request(isc_socket_t *sock) argument
849 socket_log(int lineno, isc_socket_t *sock, isc_sockaddr_t *address, isc_logcategory_t *category, isc_logmodule_t *module, int level, isc_msgcat_t *msgcat, int msgset, int message, const char *fmt, ...) argument
948 build_msghdr_send(isc_socket_t *sock, isc_socketevent_t *dev, struct msghdr *msg, char *cmsg, WSABUF *iov, IoCompletionInfo *lpo) argument
1043 set_dev_address(isc_sockaddr_t *address, isc_socket_t *sock, isc_socketevent_t *dev) argument
1067 allocate_socketevent(isc_socket_t *sock, isc_eventtype_t eventtype, isc_taskaction_t action, const void *arg) argument
1094 dump_msg(struct msghdr *msg, isc_socket_t *sock) argument
1111 map_socket_error(isc_socket_t *sock, int windows_errno, int *isc_errno, char *errorstring, size_t bufsize) argument
1216 fill_recv(isc_socket_t *sock, isc_socketevent_t *dev) argument
1286 completeio_recv(isc_socket_t *sock) argument
1330 completeio_send(isc_socket_t *sock, isc_socketevent_t *dev, struct msghdr *messagehdr, int cc, int send_errno) argument
1376 startio_send(isc_socket_t *sock, isc_socketevent_t *dev, int *nbytes, int *send_errno) argument
1439 isc_socket_t *sock; local
1513 consistent(isc_socket_t *sock) argument
1572 isc_socket_t *sock = *socketp; local
1599 isc_socket_t *sock = *sockp; local
1638 isc_socket_t *sock = NULL; local
1834 isc__socket_dup(isc_socket_t *sock, isc_socket_t **socketp) argument
1847 isc_socket_open(isc_socket_t *sock) argument
1858 isc__socket_attach(isc_socket_t *sock, isc_socket_t **socketp) argument
1876 isc_socket_t *sock; local
1906 isc_socket_close(isc_socket_t *sock) argument
1924 send_recvdone_event(isc_socket_t *sock, isc_socketevent_t **dev) argument
1946 send_senddone_event(isc_socket_t *sock, isc_socketevent_t **dev) argument
1970 send_acceptdone_event(isc_socket_t *sock, isc_socket_newconnev_t **adev) argument
1990 send_connectdone_event(isc_socket_t *sock, isc_socket_connev_t **cdev) argument
2014 internal_accept(isc_socket_t *sock, IoCompletionInfo *lpo, int accept_errno) argument
2109 internal_connect(isc_socket_t *sock, IoCompletionInfo *lpo, int connect_errno) argument
2198 send_recvdone_abort(isc_socket_t *sock, isc_result_t result) argument
2216 internal_recv(isc_socket_t *sock, int nbytes) argument
2268 internal_send(isc_socket_t *sock, isc_socketevent_t *dev, struct msghdr *messagehdr, int nbytes, int send_errno, IoCompletionInfo *lpo) argument
2329 senddone_is_active(isc_socket_t *sock, isc_socketevent_t *dev) argument
2341 acceptdone_is_active(isc_socket_t *sock, isc_socket_newconnev_t *dev) argument
2353 connectdone_is_active(isc_socket_t *sock, isc_socket_connev_t *dev) argument
2426 isc_socket_t *sock = NULL; local
2742 queue_receive_event(isc_socket_t *sock, isc_task_t *task, isc_socketevent_t *dev) argument
2768 socket_recv(isc_socket_t *sock, isc_socketevent_t *dev, isc_task_t *task, unsigned int flags) argument
2803 isc__socket_recvv(isc_socket_t *sock, isc_bufferlist_t *buflist, unsigned int minimum, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
2873 isc__socket_recv(isc_socket_t *sock, isc_region_t *region, unsigned int minimum, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
2911 isc__socket_recv2(isc_socket_t *sock, isc_region_t *region, unsigned int minimum, isc_task_t *task, isc_socketevent_t *event, unsigned int flags) argument
2958 socket_send(isc_socket_t *sock, isc_socketevent_t *dev, isc_task_t *task, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, unsigned int flags) argument
3021 isc__socket_send(isc_socket_t *sock, isc_region_t *region, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
3032 isc__socket_sendto(isc_socket_t *sock, isc_region_t *region, isc_task_t *task, isc_taskaction_t action, const void *arg, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) argument
3075 isc__socket_sendv(isc_socket_t *sock, isc_bufferlist_t *buflist, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
3083 isc__socket_sendtov(isc_socket_t *sock, isc_bufferlist_t *buflist, isc_task_t *task, isc_taskaction_t action, const void *arg, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) argument
3138 isc__socket_sendto2(isc_socket_t *sock, isc_region_t *region, isc_task_t *task, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, isc_socketevent_t *event, unsigned int flags) argument
3173 isc__socket_bind(isc_socket_t *sock, isc_sockaddr_t *sockaddr, unsigned int options) argument
3240 isc__socket_filter(isc_socket_t *sock, const char *filter) argument
3259 isc__socket_listen(isc_socket_t *sock, unsigned int backlog) argument
3304 isc__socket_accept(isc_socket_t *sock, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
3422 isc__socket_connect(isc_socket_t *sock, isc_sockaddr_t *addr, isc_task_t *task, isc_taskaction_t action, const void *arg) argument
3537 isc__socket_getpeername(isc_socket_t *sock, isc_sockaddr_t *addressp) argument
3567 isc__socket_getsockname(isc_socket_t *sock, isc_sockaddr_t *addressp) argument
3614 isc__socket_cancel(isc_socket_t *sock, isc_task_t *task, unsigned int how) argument
3740 isc__socket_gettype(isc_socket_t *sock) argument
3761 isc__socket_isbound(isc_socket_t *sock) argument
3784 isc__socket_ipv6only(isc_socket_t *sock, isc_boolean_t yes) argument
3882 isc_socket_t *sock; local
[all...]

Completed in 163 milliseconds

1234567891011>>