Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion proposals/sockets/wit-0.3.0-draft/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ interface types {
///
/// POSIX equivalent: ECONNREFUSED
connection-refused,


/// A write failed because the connection was broken.
///
/// POSIX equivalent: EPIPE
connection-broken,

/// The connection was reset.
///
/// POSIX equivalent: ECONNRESET
Expand Down Expand Up @@ -349,6 +354,7 @@ interface types {
/// # Typical errors
/// - `invalid-state`: The socket is not in the `connected` state. (ENOTCONN)
/// - `invalid-state`: `send` has already been called on this socket.
/// - `connection-broken`: The connection is not writable anymore. (EPIPE, ECONNABORTED on Windows)
/// - `connection-reset`: The connection was reset. (ECONNRESET)
/// - `remote-unreachable`: The remote address is not reachable. (EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN, ENONET)
///
Expand Down