/libuv/src/ |
H A D | uv-common.c | 327 unsigned int addrlen; in uv_tcp_bind() local 444 int addrlen; in uv__udp_is_connected() local 452 return addrlen > 0; in uv__udp_is_connected() 480 addrlen = 0; in uv__udp_check_before_send() 483 return addrlen; in uv__udp_check_before_send() 493 int addrlen; in uv_udp_send() local 496 if (addrlen < 0) in uv_udp_send() 497 return addrlen; in uv_udp_send() 507 int addrlen; in uv_udp_try_send() local 510 if (addrlen < 0) in uv_udp_try_send() [all …]
|
H A D | uv-common.h | 153 unsigned int addrlen, 159 unsigned int addrlen, 169 unsigned int addrlen, 174 unsigned int addrlen); 185 unsigned int addrlen, 192 unsigned int addrlen);
|
/libuv/src/unix/ |
H A D | pipe.c | 69 socklen_t addrlen; in uv_pipe_bind2() local 117 addrlen = sizeof saddr; in uv_pipe_bind2() 263 socklen_t addrlen; in uv_pipe_connect2() local 301 addrlen = sizeof saddr; in uv_pipe_connect2() 358 socklen_t addrlen; in uv__pipe_getsockpeername() local 366 addrlen = sizeof(sa); in uv__pipe_getsockpeername() 367 memset(&sa, 0, addrlen); in uv__pipe_getsockpeername() 386 addrlen = p - sa.sun_path; in uv__pipe_getsockpeername() 390 *size = addrlen + slop; in uv__pipe_getsockpeername() 395 *size = addrlen; in uv__pipe_getsockpeername() [all …]
|
H A D | udp.c | 357 unsigned int addrlen, in uv__udp_bind() argument 412 if (bind(fd, addr, addrlen)) { in uv__udp_bind() 433 socklen_t addrlen; in uv__udp_maybe_deferred_bind() local 445 addrlen = sizeof *addr; in uv__udp_maybe_deferred_bind() 454 addrlen = sizeof *addr; in uv__udp_maybe_deferred_bind() 468 unsigned int addrlen) { in uv__udp_connect() argument 477 err = connect(handle->io_watcher.fd, addr, addrlen); in uv__udp_connect() 567 unsigned int addrlen, in uv__udp_send() argument 587 assert(addrlen <= sizeof(req->u.storage)); in uv__udp_send() 591 memcpy(&req->u.storage, addr, addrlen); in uv__udp_send() [all …]
|
H A D | tcp.c | 153 unsigned int addrlen, in uv__tcp_bind() argument 196 err = bind(tcp->io_watcher.fd, addr, addrlen); in uv__tcp_bind() 280 unsigned int addrlen, in uv__tcp_connect() argument 310 r = connect(uv__stream_fd(handle), addr, addrlen); in uv__tcp_connect()
|
/libuv/src/win/ |
H A D | udp.c | 257 r = bind(handle->socket, addr, addrlen); in uv__udp_maybe_bind() 359 unsigned int addrlen, in uv__send() argument 375 addrlen, in uv__send() 901 int addrlen; in uv__udp_is_bound() local 903 addrlen = sizeof(addr); in uv__udp_is_bound() 907 return addrlen > 0; in uv__udp_is_bound() 1004 unsigned int addrlen, in SOCKOPT_SETTER() 1018 unsigned int addrlen) { in uv__udp_connect() argument 1023 if (addrlen == sizeof(uv_addr_ip4_any_)) in uv__udp_connect() 1068 unsigned int addrlen, in uv__udp_send() argument [all …]
|
H A D | tcp.c | 290 unsigned int addrlen, in uv__tcp_try_bind() argument 337 r = bind(handle->socket, addr, addrlen); in uv__tcp_try_bind() 770 unsigned int addrlen, in uv__tcp_try_connect() argument 788 if (addrlen == sizeof(uv_addr_ip4_any_)) { in uv__tcp_try_connect() 790 } else if (addrlen == sizeof(uv_addr_ip6_any_)) { in uv__tcp_try_connect() 795 err = uv__tcp_try_bind(handle, bind_addr, addrlen, 0); in uv__tcp_try_connect() 844 addrlen, in uv__tcp_try_connect() 1537 unsigned int addrlen, in uv__tcp_bind() argument 1541 err = uv__tcp_try_bind(handle, addr, addrlen, flags); in uv__tcp_bind() 1555 unsigned int addrlen, in uv__tcp_connect() argument [all …]
|
/libuv/test/ |
H A D | test-udp-connect.c | 108 int addrlen; in TEST_IMPL() local 145 addrlen = sizeof(tmp_addr); in TEST_IMPL() 146 r = uv_udp_getpeername(&client, (struct sockaddr*) &tmp_addr, &addrlen); in TEST_IMPL() 162 addrlen = sizeof(tmp_addr); in TEST_IMPL() 163 r = uv_udp_getpeername(&client, (struct sockaddr*) &tmp_addr, &addrlen); in TEST_IMPL()
|
H A D | test-udp-connect6.c | 108 int addrlen; in TEST_IMPL() local 148 addrlen = sizeof(tmp_addr); in TEST_IMPL() 149 r = uv_udp_getpeername(&client, (struct sockaddr*) &tmp_addr, &addrlen); in TEST_IMPL() 165 addrlen = sizeof(tmp_addr); in TEST_IMPL() 166 r = uv_udp_getpeername(&client, (struct sockaddr*) &tmp_addr, &addrlen); in TEST_IMPL()
|
H A D | test-tcp-bind-error.c | 47 int addrlen; in TEST_IMPL() local 66 addrlen = sizeof(addr); in TEST_IMPL() 69 &addrlen)); in TEST_IMPL()
|