| ... | ... | @@ -2711,7 +2711,6 @@ pub const ShutdownError = error{ |
| 2711 | 2711 | |
| 2712 | 2712 | /// Connection was reset by peer, application should close socket as it is no longer usable. |
| 2713 | 2713 | ConnectionResetByPeer, |
| 2714 | | |
| 2715 | 2714 | BlockingOperationInProgress, |
| 2716 | 2715 | |
| 2717 | 2716 | /// The network subsystem has failed. |
| ... | ... | @@ -2719,8 +2718,7 @@ pub const ShutdownError = error{ |
| 2719 | 2718 | |
| 2720 | 2719 | /// The socket is not connected (connection-oriented sockets only). |
| 2721 | 2720 | SocketNotConnected, |
| 2722 | | |
| 2723 | | SystemResources |
| 2721 | SystemResources, |
| 2724 | 2722 | } || UnexpectedError; |
| 2725 | 2723 | |
| 2726 | 2724 | pub const ShutdownHow = enum { recv, send, both }; |
| ... | ... | @@ -4776,6 +4774,7 @@ pub const SendError = error{ |
| 4776 | 4774 | BrokenPipe, |
| 4777 | 4775 | |
| 4778 | 4776 | FileDescriptorNotASocket, |
| 4777 | AddressFamilyNotSupported, |
| 4779 | 4778 | } || UnexpectedError; |
| 4780 | 4779 | |
| 4781 | 4780 | /// Transmit a message to another socket. |
| ... | ... | @@ -4822,6 +4821,7 @@ pub fn sendto( |
| 4822 | 4821 | .WSAEMSGSIZE => return error.MessageTooBig, |
| 4823 | 4822 | .WSAENOBUFS => return error.SystemResources, |
| 4824 | 4823 | .WSAENOTSOCK => return error.FileDescriptorNotASocket, |
| 4824 | .WSAEAFNOSUPPORT => return error.AddressFamilyNotSupported, |
| 4825 | 4825 | // TODO: handle more errors |
| 4826 | 4826 | else => |err| return windows.unexpectedWSAError(err), |
| 4827 | 4827 | } |
| ... | ... | @@ -4849,6 +4849,7 @@ pub fn sendto( |
| 4849 | 4849 | ENOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. |
| 4850 | 4850 | EOPNOTSUPP => unreachable, // Some bit in the flags argument is inappropriate for the socket type. |
| 4851 | 4851 | EPIPE => return error.BrokenPipe, |
| 4852 | EAFNOSUPPORT => return error.AddressFamilyNotSupported, |
| 4852 | 4853 | else => |err| return unexpectedErrno(err), |
| 4853 | 4854 | } |
| 4854 | 4855 | } |