aboutsummaryrefslogtreecommitdiff
path: root/core/net/errors_linux.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-03-08 14:35:40 +0100
committerGitHub <noreply@github.com>2023-03-08 14:35:40 +0100
commit9af6d6c9c69bb3f913e08a309d389737ca09080e (patch)
tree504fdf5d5635246329c3575386342b70263652a8 /core/net/errors_linux.odin
parenta262c0bbf325051891debe1a86866f5c9059ee58 (diff)
parent1ecab2fcbc4a52b481f185ccf87bb38c9691c39e (diff)
Merge pull request #2369 from Sokus/non-blocking-socket-mode
Add `set_blocking` for network sockets
Diffstat (limited to 'core/net/errors_linux.odin')
-rw-r--r--core/net/errors_linux.odin8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/net/errors_linux.odin b/core/net/errors_linux.odin
index 9575d7c18..9366f4435 100644
--- a/core/net/errors_linux.odin
+++ b/core/net/errors_linux.odin
@@ -190,4 +190,12 @@ Socket_Option_Error :: enum c.int {
Invalid_Option_For_Socket = c.int(os.ENOPROTOOPT),
Reset_When_Keepalive_Set = c.int(os.ENOTCONN),
Not_Socket = c.int(os.ENOTSOCK),
+}
+
+Set_Blocking_Error :: enum c.int {
+ None = 0,
+
+ // TODO: add errors occuring on followig calls:
+ // flags, _ := os.fcntl(sd, os.F_GETFL, 0)
+ // os.fcntl(sd, os.F_SETFL, flags | int(os.O_NONBLOCK))
} \ No newline at end of file