Lines Matching refs:addrlen
327 unsigned int addrlen; in uv_tcp_bind() local
335 addrlen = sizeof(struct sockaddr_in); in uv_tcp_bind()
337 addrlen = sizeof(struct sockaddr_in6); in uv_tcp_bind()
341 return uv__tcp_bind(handle, addr, addrlen, flags); in uv_tcp_bind()
378 unsigned int addrlen; in uv_udp_bind() local
384 addrlen = sizeof(struct sockaddr_in); in uv_udp_bind()
386 addrlen = sizeof(struct sockaddr_in6); in uv_udp_bind()
390 return uv__udp_bind(handle, addr, addrlen, flags); in uv_udp_bind()
398 unsigned int addrlen; in uv_tcp_connect() local
404 addrlen = sizeof(struct sockaddr_in); in uv_tcp_connect()
406 addrlen = sizeof(struct sockaddr_in6); in uv_tcp_connect()
410 return uv__tcp_connect(req, handle, addr, addrlen, cb); in uv_tcp_connect()
415 unsigned int addrlen; in uv_udp_connect() local
429 addrlen = sizeof(struct sockaddr_in); in uv_udp_connect()
431 addrlen = sizeof(struct sockaddr_in6); in uv_udp_connect()
438 return uv__udp_connect(handle, addr, addrlen); in uv_udp_connect()
444 int addrlen; in uv__udp_is_connected() local
448 addrlen = sizeof(addr); in uv__udp_is_connected()
449 if (uv_udp_getpeername(handle, (struct sockaddr*) &addr, &addrlen) != 0) in uv__udp_is_connected()
452 return addrlen > 0; in uv__udp_is_connected()
457 unsigned int addrlen; in uv__udp_check_before_send() local
470 addrlen = sizeof(struct sockaddr_in); in uv__udp_check_before_send()
472 addrlen = sizeof(struct sockaddr_in6); in uv__udp_check_before_send()
475 addrlen = sizeof(struct sockaddr_un); in uv__udp_check_before_send()
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
495 addrlen = uv__udp_check_before_send(handle, addr); in uv_udp_send()
496 if (addrlen < 0) in uv_udp_send()
497 return addrlen; in uv_udp_send()
499 return uv__udp_send(req, handle, bufs, nbufs, addr, addrlen, send_cb); in uv_udp_send()
507 int addrlen; in uv_udp_try_send() local
509 addrlen = uv__udp_check_before_send(handle, addr); in uv_udp_try_send()
510 if (addrlen < 0) in uv_udp_try_send()
511 return addrlen; in uv_udp_try_send()
513 return uv__udp_try_send(handle, bufs, nbufs, addr, addrlen); in uv_udp_try_send()