Home
last modified time | relevance | path

Searched refs:socklen (Results 1 – 20 of 20) sorted by relevance

/external/toybox/toys/pending/
Dtftpd.c78 socklen_t socklen, char *errmsg) in send_errpkt() argument
83 if (sendto(TT.sfd, g_errpkt, strlen(errmsg)+5, 0, dstaddr, socklen) < 0) in send_errpkt()
89 socklen_t socklen, char *file, int opcode, int tsize, int blksize) in do_action() argument
109 send_errpkt(dstaddr, socklen, "can't open file"); in do_action()
150 send_errpkt(dstaddr, socklen, "read-error"); in do_action()
160 if (sendto(TT.sfd, spkt, (ptr - spkt), 0, dstaddr, socklen) <0) in do_action()
180 send_errpkt(dstaddr, socklen, "read-error"); in do_action()
218 send_errpkt(dstaddr, socklen, "write error"); in do_action()
241 socklen_t socklen = sizeof(struct sockaddr_storage); in tftpd_main() local
245 if (getsockname(0, (struct sockaddr *)&srcaddr, &socklen)) help_exit(0); in tftpd_main()
[all …]
/external/wpa_supplicant_8/src/common/
Dctrl_iface_common.c78 socklen_t socklen) in sockaddr_print() argument
88 getnameinfo((struct sockaddr *) sock, socklen, in sockaddr_print()
104 socklen - offsetof(struct sockaddr_un, sun_path)); in sockaddr_print()
Dctrl_iface_common.h29 socklen_t socklen);
/external/libevent/include/event2/
Dlistener.h48 …connlistener_cb)(struct evconnlistener *, evutil_socket_t, struct sockaddr *, int socklen, void *);
110 const struct sockaddr *sa, int socklen);
/external/libevent/
Dlistener.c203 int socklen) in evconnlistener_new_bind() argument
241 if (bind(fd, sa, socklen)<0) { in evconnlistener_new_bind()
392 int socklen = sizeof(ss); in listener_read_cb() local
394 socklen_t socklen = sizeof(ss); in listener_read_cb() local
396 evutil_socket_t new_fd = accept(fd, (struct sockaddr*)&ss, &socklen); in listener_read_cb()
399 if (socklen == 0) { in listener_read_cb()
418 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen, in listener_read_cb()
805 int socklen = sizeof(ss); in evconnlistener_new_async() local
822 if (getsockname(fd, (struct sockaddr*)&ss, &socklen)) { in evconnlistener_new_async()
Dutil-internal.h172 int evutil_socket_connect(evutil_socket_t *fd_ptr, struct sockaddr *sa, int socklen);
179 ev_socklen_t *socklen, int port);
246 ev_socklen_t socklen, const struct evutil_addrinfo *hints);
Devutil.c468 evutil_socket_connect(evutil_socket_t *fd_ptr, struct sockaddr *sa, int socklen) in evutil_socket_connect() argument
481 if (connect(*fd_ptr, sa, socklen) < 0) { in evutil_socket_connect()
648 evutil_new_addrinfo(struct sockaddr *sa, ev_socklen_t socklen, in evutil_new_addrinfo() argument
660 r1 = evutil_new_addrinfo(sa, socklen, &tmp); in evutil_new_addrinfo()
664 r2 = evutil_new_addrinfo(sa, socklen, &tmp); in evutil_new_addrinfo()
674 res = mm_calloc(1,sizeof(struct evutil_addrinfo)+socklen); in evutil_new_addrinfo()
679 memcpy(res->ai_addr, sa, socklen); in evutil_new_addrinfo()
680 res->ai_addrlen = socklen; in evutil_new_addrinfo()
993 int socklen; in addrinfo_from_hostent() local
1002 socklen = sizeof(struct sockaddr_in); in addrinfo_from_hostent()
[all …]
Dbufferevent_sock.c354 struct sockaddr *sa, int socklen) in bufferevent_socket_connect() argument
384 r = bufferevent_async_connect(bev, fd, sa, socklen); in bufferevent_socket_connect()
392 r = evutil_socket_connect(&fd, sa, socklen); in bufferevent_socket_connect()
Diocp-internal.h195 const struct sockaddr *sa, int socklen);
Dbufferevent_async.c609 const struct sockaddr *sa, int socklen) in bufferevent_async_connect() argument
642 rc = ext->ConnectEx(fd, sa, socklen, NULL, 0, NULL, in bufferevent_async_connect()
Devdns.c4043 int socklen = sizeof(ss); in evdns_base_parse_hosts_line() local
4052 if (evutil_parse_sockaddr_port(addr, (struct sockaddr*)&ss, &socklen)<0) in evdns_base_parse_hosts_line()
4054 if (socklen > (int)sizeof(struct sockaddr_in6)) in evdns_base_parse_hosts_line()
4074 EVUTIL_ASSERT(socklen <= (int)sizeof(he->addr)); in evdns_base_parse_hosts_line()
4075 memcpy(&he->addr, &ss, socklen); in evdns_base_parse_hosts_line()
4077 he->addrlen = socklen; in evdns_base_parse_hosts_line()
4314 int socklen, addrlen; in evdns_getaddrinfo_gotresolve() local
4415 socklen = sizeof(sin); in evdns_getaddrinfo_gotresolve()
4424 socklen = sizeof(sin6); in evdns_getaddrinfo_gotresolve()
4433 ai = evutil_new_addrinfo(sa, socklen, &data->hints); in evdns_getaddrinfo_gotresolve()
/external/fio/engines/
Dnet.c830 socklen_t socklen; in fio_netio_accept() local
847 socklen = sizeof(nd->addr); in fio_netio_accept()
848 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr, &socklen); in fio_netio_accept()
850 socklen = sizeof(nd->addr6); in fio_netio_accept()
851 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr6, &socklen); in fio_netio_accept()
/external/libvncserver/rfb/
Drfbconfig.h.cmake104 /* The type for socklen */
/external/fio/
Dclient.c410 socklen_t socklen; in fio_client_connect_ip() local
418 socklen = sizeof(client->addr6); in fio_client_connect_ip()
424 socklen = sizeof(client->addr); in fio_client_connect_ip()
435 if (connect(fd, addr, socklen) < 0) { in fio_client_connect_ip()
Dserver.c1442 socklen_t socklen; in fio_init_server_ip() local
1475 socklen = sizeof(saddr_in6); in fio_init_server_ip()
1482 socklen = sizeof(saddr_in); in fio_init_server_ip()
1487 if (bind(sk, addr, socklen) < 0) { in fio_init_server_ip()
/external/netperf/src/missing/m4/
Dsockinttypes.m437 socklen_t socklen;
/external/netperf/m4/m4/
Dsockinttypes.m437 socklen_t socklen;
/external/blktrace/
Dblktrace.c2278 socklen_t socklen = sizeof(ns->addr); in net_add_connection() local
2280 fd = my_accept(ns->listen_fd, (struct sockaddr *)&ns->addr, &socklen); in net_add_connection()
/external/netperf/
Dacinclude.m4224 socklen_t socklen;
DRelease_Notes388 *) Replace "break" with "break 2" in acinclude.m4 for a socklen macro