Searched defs:sock (Results 1 - 25 of 32) sorted by relevance

12

/bind-9.11.3/lib/dns/include/dns/
H A Dtcpmsg.h27 isc_socket_t *sock; member in struct:dns_tcpmsg
40 dns_tcpmsg_init(isc_mem_t *mctx, isc_socket_t *sock, dns_tcpmsg_t *tcpmsg);
47 *\li "mctx" and "sock" be non-NULL and valid types.
49 *\li "sock" be a read/write TCP socket.
/bind-9.11.3/lib/isccc/include/isccc/
H A Dccmsg.h42 isc_socket_t *sock; member in struct:isccc_ccmsg
55 isccc_ccmsg_init(isc_mem_t *mctx, isc_socket_t *sock, isccc_ccmsg_t *ccmsg);
62 *\li "mctx" and "sock" be non-NULL and valid types.
64 *\li "sock" be a read/write TCP socket.
/bind-9.11.3/lib/lwres/
H A Dcontext_p.h38 int sock; /*%< socket to send on */ member in struct:lwres_context
/bind-9.11.3/bin/named/include/named/
H A Dlwresd.h44 isc_socket_t *sock; member in struct:ns_lwreslistener
H A Dlwdclient.h175 isc_socket_t *sock; /*%< socket to use */ member in struct:ns_lwdclientmgr
/bind-9.11.3/lib/dns/
H A Dtcpmsg.c78 result = isc_socket_recv(tcpmsg->sock, &region, 0,
125 dns_tcpmsg_init(isc_mem_t *mctx, isc_socket_t *sock, dns_tcpmsg_t *tcpmsg) { argument
127 REQUIRE(sock != NULL);
136 tcpmsg->sock = sock;
183 result = isc_socket_recv(tcpmsg->sock, &region, 0,
196 isc_socket_cancel(tcpmsg->sock, NULL, ISC_SOCKCANCEL_RECV);
H A Drequest.c139 isc_socket_t *sock; local
151 UNUSED(sock);
421 isc_socket_t *sock; local
428 sock = req_getsocket(request);
435 sendevent = isc_socket_socketevent(request->mctx, sock,
449 result = isc_socket_sendto2(sock, &r, task, address, NULL,
527 isc_socket_t *sock = NULL; local
561 isc_sockettype_tcp, &sock);
568 result = isc_socket_bind(sock, &bind_any, 0);
572 result = isc_socket_bind(sock,
743 isc_socket_t *sock = NULL; local
978 isc_socket_t *sock = NULL; local
1347 isc_socket_t *sock; local
1557 isc_socket_t *sock; local
[all...]
/bind-9.11.3/lib/isccc/
H A Dccmsg.c82 result = isc_socket_recv(ccmsg->sock, &region, 0,
127 isccc_ccmsg_init(isc_mem_t *mctx, isc_socket_t *sock, isccc_ccmsg_t *ccmsg) { argument
129 REQUIRE(sock != NULL);
138 ccmsg->sock = sock;
184 result = isc_socket_recv(ccmsg->sock, &region, 0,
197 isc_socket_cancel(ccmsg->sock, NULL, ISC_SOCKCANCEL_RECV);
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/
H A Dnet.c126 int sock; local
138 sock = socket(family, SOCK_DGRAM, 0);
139 if (sock == -1)
146 if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY,
162 if (bind(sock, &tmp.type.sa, tmp.length) == -1)
168 ret = setsockopt(sock, SOL_SOCKET, SO_RCVBUF,
173 ret = setsockopt(sock, SOL_SOCKET, SO_SNDBUF,
179 flags = fcntl(sock, F_GETFL, 0);
182 ret = fcntl(sock, F_SETFL, flags | O_NONBLOCK);
186 return sock;
[all...]
H A Dresperf.c460 unsigned int sock; local
476 sock = (q - queries) % nsocks;
488 if (sendto(socks[sock], base, length, 0,
H A Ddnsperf.c144 int sock; member in struct:query_info
630 q->sock = tinfo->socks[tinfo->current_sock++ % tinfo->nsocks];
671 n = sendto(q->sock, base, length, 0,
728 int sock; member in struct:__anon60
758 recvd->sock = s;
862 q->sock != recvd[i].sock)
/bind-9.11.3/bin/tests/system/chain/ans4/
H A Dans.py269 sock = 5300 variable
272 query4_socket.bind((ip4, sock))
278 query6_socket.bind((ip6, sock))
286 ctrl_socket.bind((ip4, sock + 1))
298 print ("Listening on %s port %d" % (ip4, sock))
300 print ("Listening on %s port %d" % (ip6, sock))
301 print ("Control channel on %s port %d" % (ip4, sock + 1))
/bind-9.11.3/bin/tests/system/tkey/
H A Dkeydelete.c140 isc_socket_t *sock; local
215 sock = NULL;
217 &sock));
246 isc_socket_detach(&sock);
H A Dkeycreate.c207 isc_socket_t *sock; local
286 sock = NULL;
288 &sock));
312 isc_socket_detach(&sock);
/bind-9.11.3/lib/dns/tests/
H A Ddispatch_test.c142 isc_socket_t *sock = event->ev_arg; local
146 isc_socket_detach(&sock);
155 isc_socket_t *sock = event->ev_arg; local
174 isc_socket_attach(sock, &dummy);
175 result = isc_socket_sendto(sock, &region, task, senddone, sock,
186 isc_socket_attach(sock, &dummy);
187 result = isc_socket_sendto(sock, &region, task, senddone, sock,
227 isc_socket_t *sock local
229 isc_socket_attach(dns_dispatch_getsocket(dispatch), &sock); local
243 isc_socket_t *sock = NULL; local
[all...]
/bind-9.11.3/bin/tests/
H A Dsock_test.c39 isc_socket_t *sock; local
42 sock = event->ev_sender;
45 printf("my_send: %s task %p\n\t(sock %p, base %p, length %d, n %d, "
47 (char *)(event->ev_arg), task, sock,
52 isc_socket_detach(&sock);
64 isc_socket_t *sock; local
70 sock = event->ev_sender;
73 printf("Socket %s (sock %p, base %p, length %d, n %d, result %d)\n",
74 (char *)(event->ev_arg), sock,
90 isc_socket_detach(&sock);
127 isc_socket_t *sock; local
155 isc_socket_t *sock; local
244 isc_socket_t *sock = event->ev_arg; local
[all...]
/bind-9.11.3/lib/isc/
H A Dsocket_api.c106 isc_socket_attach(isc_socket_t *sock, isc_socket_t **socketp) { argument
107 REQUIRE(ISCAPI_SOCKET_VALID(sock));
111 isc__socket_attach(sock, socketp);
113 sock->methods->attach(sock, socketp);
115 ENSURE(*socketp == sock);
131 isc_socket_bind(isc_socket_t *sock, isc_sockaddr_t *sockaddr, argument
134 REQUIRE(ISCAPI_SOCKET_VALID(sock));
137 return (isc__socket_bind(sock, sockaddr, options));
139 return (sock
143 isc_socket_sendto(isc_socket_t *sock, isc_region_t *region, isc_task_t *task, isc_taskaction_t action, void *arg, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) argument
158 isc_socket_connect(isc_socket_t *sock, isc_sockaddr_t *addr, isc_task_t *task, isc_taskaction_t action, void *arg) argument
170 isc_socket_recv(isc_socket_t *sock, isc_region_t *region, unsigned int minimum, isc_task_t *task, isc_taskaction_t action, void *arg) argument
183 isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, unsigned int how) argument
193 isc_socket_getsockname(isc_socket_t *sock, isc_sockaddr_t *addressp) argument
203 isc_socket_ipv6only(isc_socket_t *sock, isc_boolean_t yes) argument
213 isc_socket_dscp(isc_socket_t *sock, isc_dscp_t dscp) argument
220 isc_socket_gettype(isc_socket_t *sock) argument
230 isc_socket_setname(isc_socket_t *sock, const char *name, void *tag) argument
256 isc_socket_fdwatchpoke(isc_socket_t *sock, int flags) argument
267 isc_socket_dup(isc_socket_t *sock, isc_socket_t **socketp) argument
278 isc_socket_getfd(isc_socket_t *sock) argument
288 isc_socket_open(isc_socket_t *sock) argument
293 isc_socket_close(isc_socket_t *sock) argument
305 isc_socket_recvv(isc_socket_t *sock, isc_bufferlist_t *buflist, unsigned int minimum, isc_task_t *task, isc_taskaction_t action, void *arg) argument
313 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
321 isc_socket_send(isc_socket_t *sock, isc_region_t *region, isc_task_t *task, isc_taskaction_t action, void *arg) argument
328 isc_socket_sendv(isc_socket_t *sock, isc_bufferlist_t *buflist, isc_task_t *task, isc_taskaction_t action, void *arg) argument
335 isc_socket_sendtov(isc_socket_t *sock, isc_bufferlist_t *buflist, isc_task_t *task, isc_taskaction_t action, void *arg, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) argument
344 isc_socket_sendtov2(isc_socket_t *sock, isc_bufferlist_t *buflist, isc_task_t *task, isc_taskaction_t action, void *arg, isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, unsigned int flags) argument
354 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
376 isc_socket_filter(isc_socket_t *sock, const char *filter) argument
381 isc_socket_listen(isc_socket_t *sock, unsigned int backlog) argument
386 isc_socket_accept(isc_socket_t *sock, isc_task_t *task, isc_taskaction_t action, void *arg) argument
393 isc_socket_getpeername(isc_socket_t *sock, isc_sockaddr_t *addressp) argument
[all...]
H A Dhttpd.c69 isc_socket_t *sock; member in struct:isc_httpd
128 isc_socket_t *sock; /*%< listening socket */ member in struct:isc_httpdmgr
225 isc_socket_detach(&httpd->sock);
249 isc_httpdmgr_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task, argument
258 REQUIRE(sock != NULL);
274 httpdmgr->sock = NULL;
275 isc_socket_attach(sock, &httpdmgr->sock);
288 result = isc_socket_listen(sock, SOMAXCONN);
296 (void)isc_socket_filter(sock, "httpread
[all...]
/bind-9.11.3/bin/tests/dst/
H A Dgsstest.c438 isc_socket_t *sock; local
520 sock = NULL;
522 &sock));
544 isc_socket_detach(&sock);
/bind-9.11.3/bin/named/
H A Dlwresd.c507 if (listener->sock != NULL)
508 isc_socket_detach(&listener->sock);
539 listener->sock = NULL;
556 isc_socket_t *sock = NULL; local
575 sock = NULL;
577 isc_sockettype_udp, &sock);
586 result = isc_socket_bind(sock, &listener->address,
592 isc_socket_detach(&sock);
599 listener->sock = sock;
[all...]
H A Dcontrolconf.c70 isc_socket_t * sock; member in struct:controlconnection
86 isc_socket_t * sock; member in struct:controllistener
136 if (listener->sock != NULL)
137 isc_socket_detach(&listener->sock);
171 isc_socket_cancel(conn->sock, listener->task,
214 isc_socket_cancel(listener->sock, listener->task,
240 result = isc_socket_accept(listener->sock,
256 result = isc_socket_listen(listener->sock, 0);
274 isc_socket_t *sock = (isc_socket_t *)sevent->ev_sender; local
289 (void)isc_socket_getpeername(sock,
554 newconnection(controllistener_t *listener, isc_socket_t *sock) argument
611 isc_socket_t *sock; local
[all...]
/bind-9.11.3/bin/rndc/
H A Drndc.c81 static isc_socket_t *sock = NULL; variable
245 isc_socket_detach(&sock);
314 isc_socket_detach(&sock);
395 DO("send message", isc_socket_send(sock, &r, task, rndc_senddone,
426 isc_socket_detach(&sock);
457 isccc_ccmsg_init(rndc_mctx, sock, &ccmsg);
463 DO("send message", isc_socket_send(sock, &r, task, rndc_senddone,
487 DO("create socket", isc_socket_create(socketmgr, pf, type, &sock));
490 DO("bind socket", isc_socket_bind(sock, &local4, 0));
493 DO("bind socket", isc_socket_bind(sock,
[all...]
/bind-9.11.3/bin/dig/include/dig/
H A Ddig.h225 isc_socket_t *sock; member in struct:dig_query
/bind-9.11.3/contrib/dlz/modules/mysqldyn/
H A Ddlz_mysqldyn_mod.c207 MYSQL *sock; member in struct:mysql_instance
280 conn = mysql_real_connect(dbi->sock, state->db_host,
288 modname, mysql_error(dbi->sock));
334 mysql_real_escape_string(dbi->sock, s, original,
578 ret = mysql_real_query(dbi->sock, query, strlen(query));
583 modname, query, mysql_error(dbi->sock));
619 res = mysql_store_result(dbi->sock);
624 modname, mysql_error(dbi->sock));
981 state->db[n].sock = mysql_init(NULL);
982 mysql_options(state->db[n].sock,
[all...]
/bind-9.11.3/contrib/perftcpdns/
H A Dperftcpdns.c180 int sock; /* socket descriptor */ member in struct:exchange
330 xlist[idx].sock = xlist[idx].next = -1;
575 (void) close(x->sock);
576 x->sock = -1;
627 if ((getsockopt(x->sock, SOL_SOCKET, SO_ERROR,
630 (void) close(x->sock);
631 x->sock = -1;
692 ret = send(x->sock, obuf, length_query + off, 0);
719 (void) close(x->sock);
720 x->sock
959 int sock; local
1127 int sock; local
[all...]

Completed in 55 milliseconds

12