Lines Matching refs:err
86 int err; in uv__tcp_set_socket() local
128 err = uv__tcp_nodelay(handle, socket, 1); in uv__tcp_set_socket()
129 if (err) in uv__tcp_set_socket()
130 return err; in uv__tcp_set_socket()
135 err = uv__tcp_keepalive(handle, socket, 1, 60); in uv__tcp_set_socket()
136 if (err) in uv__tcp_set_socket()
137 return err; in uv__tcp_set_socket()
179 DWORD err; in uv_tcp_init_ex() local
183 err = WSAGetLastError(); in uv_tcp_init_ex()
185 return uv_translate_sys_error(err); in uv_tcp_init_ex()
188 err = uv__tcp_set_socket(handle->loop, handle, sock, domain, 0); in uv_tcp_init_ex()
189 if (err) { in uv_tcp_init_ex()
192 return uv_translate_sys_error(err); in uv_tcp_init_ex()
207 int err; in uv__process_tcp_shutdown_req() local
217 err = 0; in uv__process_tcp_shutdown_req()
220 err = UV_ECANCELED; in uv__process_tcp_shutdown_req()
222 err = uv_translate_sys_error(WSAGetLastError()); in uv__process_tcp_shutdown_req()
227 req->cb(req, err); in uv__process_tcp_shutdown_req()
292 DWORD err; in uv__tcp_try_bind() local
313 err = uv__tcp_set_socket(handle->loop, handle, sock, addr->sa_family, 0); in uv__tcp_try_bind()
314 if (err) { in uv__tcp_try_bind()
316 return err; in uv__tcp_try_bind()
340 err = WSAGetLastError(); in uv__tcp_try_bind()
341 if (err == WSAEADDRINUSE) { in uv__tcp_try_bind()
343 handle->delayed_error = err; in uv__tcp_try_bind()
345 return err; in uv__tcp_try_bind()
552 int err; in uv__tcp_listen() local
569 err = uv__tcp_try_bind(handle, in uv__tcp_listen()
573 if (err) in uv__tcp_listen()
574 return err; in uv__tcp_listen()
642 int err = 0; in uv__tcp_accept() local
662 err = uv__tcp_set_socket(client->loop, in uv__tcp_accept()
667 if (err) { in uv__tcp_accept()
703 return err; in uv__tcp_accept()
778 int err; in uv__tcp_try_connect() local
780 err = uv__convert_to_localhost_if_unspecified(addr, &converted); in uv__tcp_try_connect()
781 if (err) in uv__tcp_try_connect()
782 return err; in uv__tcp_try_connect()
795 err = uv__tcp_try_bind(handle, bind_addr, addrlen, 0); in uv__tcp_try_connect()
796 if (err) in uv__tcp_try_connect()
797 return err; in uv__tcp_try_connect()
984 DWORD bytes, flags, err; in uv__process_tcp_read_req() local
1001 err = GET_REQ_SOCK_ERROR(req); in uv__process_tcp_read_req()
1003 if (err == WSAECONNABORTED) { in uv__process_tcp_read_req()
1006 err = WSAECONNRESET; in uv__process_tcp_read_req()
1011 uv_translate_sys_error(err), in uv__process_tcp_read_req()
1075 err = WSAGetLastError(); in uv__process_tcp_read_req()
1076 if (err == WSAEWOULDBLOCK) { in uv__process_tcp_read_req()
1084 if (err == WSAECONNABORTED) { in uv__process_tcp_read_req()
1087 err = WSAECONNRESET; in uv__process_tcp_read_req()
1092 uv_translate_sys_error(err), in uv__process_tcp_read_req()
1113 int err; in uv__process_tcp_write_req() local
1134 err = uv_translate_sys_error(GET_REQ_SOCK_ERROR(req)); in uv__process_tcp_write_req()
1135 if (err == UV_ECONNABORTED) { in uv__process_tcp_write_req()
1137 err = UV_ECANCELED; in uv__process_tcp_write_req()
1139 req->cb(req, err); in uv__process_tcp_write_req()
1161 int err; in uv__process_tcp_accept_req() local
1173 err = GET_REQ_SOCK_ERROR(req); in uv__process_tcp_accept_req()
1175 uv_translate_sys_error(err)); in uv__process_tcp_accept_req()
1208 int err; in uv__process_tcp_connect_req() local
1214 err = 0; in uv__process_tcp_connect_req()
1220 err = handle->delayed_error; in uv__process_tcp_connect_req()
1225 err = ERROR_OPERATION_ABORTED; in uv__process_tcp_connect_req()
1234 err = WSAGetLastError(); in uv__process_tcp_connect_req()
1237 err = GET_REQ_SOCK_ERROR(req); in uv__process_tcp_connect_req()
1239 req->cb(req, uv_translate_sys_error(err)); in uv__process_tcp_connect_req()
1283 int err; in uv__tcp_xfer_import() local
1300 err = uv__tcp_set_socket( in uv__tcp_xfer_import()
1302 if (err) { in uv__tcp_xfer_import()
1304 return err; in uv__tcp_xfer_import()
1320 int err; in uv_tcp_nodelay() local
1323 err = uv__tcp_nodelay(handle, handle->socket, enable); in uv_tcp_nodelay()
1324 if (err) in uv_tcp_nodelay()
1325 return uv_translate_sys_error(err); in uv_tcp_nodelay()
1339 int err; in uv_tcp_keepalive() local
1342 err = uv__tcp_keepalive(handle, handle->socket, enable, delay); in uv_tcp_keepalive()
1343 if (err) in uv_tcp_keepalive()
1344 return uv_translate_sys_error(err); in uv_tcp_keepalive()
1492 int err; in uv_tcp_open() local
1506 err = uv__tcp_set_socket(handle->loop, in uv_tcp_open()
1511 if (err) { in uv_tcp_open()
1512 return uv_translate_sys_error(err); in uv_tcp_open()
1539 int err; in uv__tcp_bind() local
1541 err = uv__tcp_try_bind(handle, addr, addrlen, flags); in uv__tcp_bind()
1542 if (err) in uv__tcp_bind()
1543 return uv_translate_sys_error(err); in uv__tcp_bind()
1557 int err; in uv__tcp_connect() local
1559 err = uv__tcp_try_connect(req, handle, addr, addrlen, cb); in uv__tcp_connect()
1560 if (err) in uv__tcp_connect()
1561 return uv_translate_sys_error(err); in uv__tcp_connect()
1576 int err; in uv_socketpair() local
1616 err = WSAEAFNOSUPPORT; in uv_socketpair()
1628 err = WSAGetLastError(); in uv_socketpair()
1629 if (err == ERROR_IO_PENDING) { in uv_socketpair()
1634 err = WSAGetLastError(); in uv_socketpair()
1635 if (err != WSA_IO_INCOMPLETE) in uv_socketpair()
1657 err = WSAGetLastError(); in uv_socketpair()
1661 err = GetLastError(); in uv_socketpair()
1672 assert(err); in uv_socketpair()
1673 return uv_translate_sys_error(err); in uv_socketpair()