aboutsummaryrefslogtreecommitdiff
path: root/core/net/errors.odin
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2026-01-11 20:07:03 +0100
committerLaytan Laats <laytanlaats@hotmail.com>2026-01-11 20:21:21 +0100
commitc10771305d91b966f7520b830c398abffe4e9e1d (patch)
tree185497758d0298c4e23f15992a0bb48a44936863 /core/net/errors.odin
parenta6ec199a52ae83603921fcf948fdf45e327fd17d (diff)
net: implement OpenBSD and NetBSD support & add stubs for other targets & cleanup
Diffstat (limited to 'core/net/errors.odin')
-rw-r--r--core/net/errors.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/net/errors.odin b/core/net/errors.odin
index de53640fc..28153375c 100644
--- a/core/net/errors.odin
+++ b/core/net/errors.odin
@@ -139,6 +139,11 @@ Accept_Error :: enum i32 {
Unknown,
}
+Recv_Error :: union #shared_nil {
+ TCP_Recv_Error,
+ UDP_Recv_Error,
+}
+
TCP_Recv_Error :: enum i32 {
None,
// No network connection, or the network stack is not initialized.
@@ -187,6 +192,11 @@ UDP_Recv_Error :: enum i32 {
Unknown,
}
+Send_Error :: union #shared_nil {
+ TCP_Send_Error,
+ UDP_Send_Error,
+}
+
TCP_Send_Error :: enum i32 {
None,
// No network connection, or the network stack is not initialized.