Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_conn.c136 socklen_t socklen; in nxt_conn_local_addr() local
148 socklen = sizeof(struct sockaddr_in6); in nxt_conn_local_addr()
150 size = offsetof(nxt_sockaddr_t, u) + socklen + length; in nxt_conn_local_addr()
155 socklen = sizeof(struct sockaddr_in); in nxt_conn_local_addr()
157 size = offsetof(nxt_sockaddr_t, u) + socklen + length; in nxt_conn_local_addr()
166 sa->socklen = socklen; in nxt_conn_local_addr()
169 ret = getsockname(c->socket.fd, &sa->u.sockaddr, &socklen); in nxt_conn_local_addr()
H A Dnxt_sockaddr.c40 sa->socklen = ls->socklen; in nxt_sockaddr_cache_alloc()
86 sa->socklen = socklen; in nxt_sockaddr_alloc()
192 socklen_t socklen; in nxt_getsockname() local
195 socklen = NXT_SOCKADDR_LEN; in nxt_getsockname()
197 ret = getsockname(s, &sockaddr.buf, &socklen); in nxt_getsockname()
210 length = nxt_length("unix:") + socklen; in nxt_getsockname()
363 if (sa1->socklen != sa2->socklen) { in nxt_sockaddr_cmp()
655 size_t length, socklen; in nxt_sockaddr_unix_parse() local
697 socklen--; in nxt_sockaddr_unix_parse()
897 size_t length, socklen; in nxt_job_sockaddr_unix_parse() local
[all …]
H A Dnxt_listen_socket.c101 sa = nxt_sockaddr_alloc(mp, sa->socklen + 4, sa->length + 4); in nxt_listen_socket_create()
157 ret = connect(ts, &orig_sa->u.sockaddr, orig_sa->socklen); in nxt_listen_socket_create()
262 ls->socklen = sizeof(struct sockaddr_in6); in nxt_listen_socket_remote_size()
278 ls->socklen = offsetof(struct sockaddr_un, sun_path) + 1; in nxt_listen_socket_remote_size()
287 ls->socklen = sizeof(struct sockaddr_in); in nxt_listen_socket_remote_size()
314 ls->socklen = sizeof(struct sockaddr_in6); in nxt_listen_socket_pool_min_size()
337 ls->socklen = 3; in nxt_listen_socket_pool_min_size()
338 size = ls->socklen + nxt_length("unix:"); in nxt_listen_socket_pool_min_size()
346 ls->socklen = sizeof(struct sockaddr_in); in nxt_listen_socket_pool_min_size()
H A Dnxt_sockaddr.h26 uint8_t socklen; member
74 NXT_EXPORT nxt_sockaddr_t *nxt_sockaddr_alloc(nxt_mp_t *mp, socklen_t socklen,
78 struct sockaddr *sockaddr, socklen_t socklen, size_t address_length)
112 (offsetof(nxt_sockaddr_t, u) + sa->socklen + sa->length)
H A Dnxt_listen_socket.h33 uint8_t socklen; member
H A Dnxt_conn_accept.c138 socklen_t socklen; in nxt_conn_io_accept() local
151 socklen = c->remote->socklen; in nxt_conn_io_accept()
161 s = accept(lev->socket.fd, sa, &socklen); in nxt_conn_io_accept()
H A Dnxt_socket.c180 if (nxt_fast_path(bind(s, &sa->u.sockaddr, sa->socklen) == 0)) { in nxt_socket_bind()
201 if (connect(s, &sa->u.sockaddr, sa->socklen) == 0) { in nxt_socket_connect()
H A Dnxt_kqueue_engine.c931 socklen_t socklen; in nxt_kqueue_conn_io_accept() local
947 socklen = c->remote->socklen; in nxt_kqueue_conn_io_accept()
952 s = accept(lev->socket.fd, sa, &socklen); in nxt_kqueue_conn_io_accept()
H A Dnxt_epoll_engine.c1010 socklen_t socklen; in nxt_epoll_conn_io_accept4() local
1023 socklen = c->remote->socklen; in nxt_epoll_conn_io_accept4()
1028 s = accept4(lev->socket.fd, sa, &socklen, SOCK_NONBLOCK); in nxt_epoll_conn_io_accept4()
H A Dnxt_runtime.c1129 ls->sockaddr = nxt_sockaddr_create(mp, &sa->u.sockaddr, sa->socklen, in nxt_runtime_listen_socket_add()
H A Dnxt_main_process.c1146 if (bind(s, &sa->u.sockaddr, sa->socklen) != 0) { in nxt_main_listening_socket()