Lines Matching refs:err

144     DWORD err;  in uv__udp_init_ex()  local
148 err = WSAGetLastError(); in uv__udp_init_ex()
150 return uv_translate_sys_error(err); in uv__udp_init_ex()
153 err = uv__udp_set_socket(handle->loop, handle, sock, domain); in uv__udp_init_ex()
154 if (err) { in uv__udp_init_ex()
157 return uv_translate_sys_error(err); in uv__udp_init_ex()
197 int err; in uv__udp_maybe_bind() local
220 err = uv__udp_set_socket(handle->loop, handle, sock, addr->sa_family); in uv__udp_maybe_bind()
221 if (err) { in uv__udp_maybe_bind()
223 return err; in uv__udp_maybe_bind()
235 err = WSAGetLastError(); in uv__udp_maybe_bind()
236 return err; in uv__udp_maybe_bind()
316 int err; in uv__udp_recv_start() local
322 err = uv__udp_maybe_bind(handle, in uv__udp_recv_start()
326 if (err) in uv__udp_recv_start()
327 return uv_translate_sys_error(err); in uv__udp_recv_start()
413 DWORD err = GET_REQ_SOCK_ERROR(req); in uv__process_udp_recv_req() local
414 if (err == WSAEMSGSIZE) { in uv__process_udp_recv_req()
417 } else if (err == WSAECONNRESET || err == WSAENETRESET) { in uv__process_udp_recv_req()
432 handle->recv_cb(handle, uv_translate_sys_error(err), &buf, NULL, 0); in uv__process_udp_recv_req()
447 DWORD bytes, err, flags; in uv__process_udp_recv_req() local
481 err = ERROR_SUCCESS; in uv__process_udp_recv_req()
484 err = WSAGetLastError(); in uv__process_udp_recv_req()
485 if (err == WSAEMSGSIZE) { in uv__process_udp_recv_req()
492 } else if (err == WSAEWOULDBLOCK) { in uv__process_udp_recv_req()
495 } else if (err == WSAECONNRESET || err == WSAENETRESET) { in uv__process_udp_recv_req()
503 handle->recv_cb(handle, uv_translate_sys_error(err), &buf, NULL, 0); in uv__process_udp_recv_req()
507 while (err == ERROR_SUCCESS && in uv__process_udp_recv_req()
527 int err; in uv__process_udp_send_req() local
539 err = 0; in uv__process_udp_send_req()
541 err = GET_REQ_SOCK_ERROR(req); in uv__process_udp_send_req()
543 req->cb(req, uv_translate_sys_error(err)); in uv__process_udp_send_req()
554 int err; in uv__udp_set_membership4() local
562 err = uv__udp_maybe_bind(handle, in uv__udp_set_membership4()
566 if (err) in uv__udp_set_membership4()
567 return uv_translate_sys_error(err); in uv__udp_set_membership4()
572 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_membership4()
573 if (err) in uv__udp_set_membership4()
574 return err; in uv__udp_set_membership4()
609 int err; in uv__udp_set_membership6() local
616 err = uv__udp_maybe_bind(handle, in uv__udp_set_membership6()
621 if (err) in uv__udp_set_membership6()
622 return uv_translate_sys_error(err); in uv__udp_set_membership6()
666 int err; in uv__udp_set_source_membership4() local
672 err = uv__udp_maybe_bind(handle, in uv__udp_set_source_membership4()
676 if (err) in uv__udp_set_source_membership4()
677 return uv_translate_sys_error(err); in uv__udp_set_source_membership4()
682 err = uv_inet_pton(AF_INET, interface_addr, &mreq.imr_interface.s_addr); in uv__udp_set_source_membership4()
683 if (err) in uv__udp_set_source_membership4()
684 return err; in uv__udp_set_source_membership4()
719 int err; in uv__udp_set_source_membership6() local
727 err = uv__udp_maybe_bind(handle, in uv__udp_set_source_membership6()
732 if (err) in uv__udp_set_source_membership6()
733 return uv_translate_sys_error(err); in uv__udp_set_source_membership6()
738 err = uv_ip6_addr(interface_addr, 0, &addr6); in uv__udp_set_source_membership6()
739 if (err) in uv__udp_set_source_membership6()
740 return err; in uv__udp_set_source_membership6()
789 int err; in uv_udp_set_source_membership() local
802 err = uv_ip4_addr(multicast_addr, 0, mcast_addr4); in uv_udp_set_source_membership()
803 if (err) { in uv_udp_set_source_membership()
804 err = uv_ip6_addr(multicast_addr, 0, mcast_addr6); in uv_udp_set_source_membership()
805 if (err) in uv_udp_set_source_membership()
806 return err; in uv_udp_set_source_membership()
807 err = uv_ip6_addr(source_addr, 0, src_addr6); in uv_udp_set_source_membership()
808 if (err) in uv_udp_set_source_membership()
809 return err; in uv_udp_set_source_membership()
817 err = uv_ip4_addr(source_addr, 0, src_addr4); in uv_udp_set_source_membership()
818 if (err) in uv_udp_set_source_membership()
819 return err; in uv_udp_set_source_membership()
914 int err; in uv_udp_open() local
926 err = uv__udp_set_socket(handle->loop, in uv_udp_open()
930 if (err) in uv_udp_open()
931 return uv_translate_sys_error(err); in uv_udp_open()
1006 int err; in SOCKOPT_SETTER() local
1008 err = uv__udp_maybe_bind(handle, addr, addrlen, flags); in SOCKOPT_SETTER()
1009 if (err) in SOCKOPT_SETTER()
1010 return uv_translate_sys_error(err); in SOCKOPT_SETTER()
1020 int err; in uv__udp_connect() local
1030 err = uv__udp_maybe_bind(handle, bind_addr, addrlen, 0); in uv__udp_connect()
1031 if (err) in uv__udp_connect()
1032 return uv_translate_sys_error(err); in uv__udp_connect()
1035 err = connect(handle->socket, addr, addrlen); in uv__udp_connect()
1036 if (err) in uv__udp_connect()
1046 int err; in uv__udp_disconnect() local
1051 err = connect(handle->socket, (struct sockaddr*) &addr, sizeof(addr)); in uv__udp_disconnect()
1052 if (err) in uv__udp_disconnect()
1071 int err; in uv__udp_send() local
1081 err = uv__udp_maybe_bind(handle, bind_addr, addrlen, 0); in uv__udp_send()
1082 if (err) in uv__udp_send()
1083 return uv_translate_sys_error(err); in uv__udp_send()
1086 err = uv__send(req, handle, bufs, nbufs, addr, addrlen, send_cb); in uv__udp_send()
1087 if (err) in uv__udp_send()
1088 return uv_translate_sys_error(err); in uv__udp_send()
1102 int err; in uv__udp_try_send() local
1107 err = uv__convert_to_localhost_if_unspecified(addr, &converted); in uv__udp_try_send()
1108 if (err) in uv__udp_try_send()
1109 return err; in uv__udp_try_send()
1124 err = uv__udp_maybe_bind(handle, bind_addr, addrlen, 0); in uv__udp_try_send()
1125 if (err) in uv__udp_try_send()
1126 return uv_translate_sys_error(err); in uv__udp_try_send()
1129 err = WSASendTo(handle->socket, in uv__udp_try_send()
1139 if (err) in uv__udp_try_send()