From 5da5ebff130647e1d64130e0577a344dea45b2e5 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Fri, 3 Mar 2023 17:12:21 +0100 Subject: More coalescing. --- core/net/errors_linux.odin | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core/net/errors_linux.odin') diff --git a/core/net/errors_linux.odin b/core/net/errors_linux.odin index fd2ccab03..1552339d8 100644 --- a/core/net/errors_linux.odin +++ b/core/net/errors_linux.odin @@ -158,6 +158,12 @@ UDP_Send_Error :: enum c.int { No_Memory_Available = c.int(os.ENOMEM), // No memory was available to properly manage the send queue. } +Shutdown_Manner :: enum c.int { + Receive = c.int(os.SHUT_RD), + Send = c.int(os.SHUT_WR), + Both = c.int(os.SHUT_RDWR), +} + Shutdown_Error :: enum c.int { Aborted = c.int(os.ECONNABORTED), Reset = c.int(os.ECONNRESET), @@ -173,4 +179,4 @@ 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), -} +} \ No newline at end of file -- cgit v1.2.3