diff options
| author | PePerRoNii <wachiraphol.yin@gmail.com> | 2025-06-15 10:26:06 +0700 |
|---|---|---|
| committer | PePerRoNii <wachiraphol.yin@gmail.com> | 2025-06-15 10:26:06 +0700 |
| commit | f49bf1abd262a708886d7babf13100e7f1152de0 (patch) | |
| tree | bdb1cb6d4bbe5973a71f5c6daea3020bfbce77ce /core/net | |
| parent | a32ee6af97459ef9cf1f52df4f522a30abadec04 (diff) | |
added Socket_Info_Errors Enum
Diffstat (limited to 'core/net')
| -rw-r--r-- | core/net/errors.odin | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/net/errors.odin b/core/net/errors.odin index 53c936a66..4853327b0 100644 --- a/core/net/errors.odin +++ b/core/net/errors.odin @@ -246,6 +246,23 @@ Shutdown_Error :: enum i32 { Unknown, } +Socket_Info_Error :: enum i32 { + None, + // No network connection, or the network stack is not initialized. + Network_Unreachable, + // Not enough space in internal tables/buffers to create a new socket, or an unsupported protocol is given. + Insufficient_Resources, + // Socket is invalid or not connected, or the manner given is invalid. + Invalid_Argument, + // The socket is valid, but unsupported by this opperation. + Unsupported_Socket, + // Connection was closed/aborted/shutdown. + Connection_Closed, + + // An error unable to be categorized in above categories, `last_platform_error` may have more info. + Unknown, +} + Socket_Option_Error :: enum i32 { None, // No network connection, or the network stack is not initialized. |