diff options
| author | Sokus <soqs687@gmail.com> | 2023-03-08 13:17:59 +0100 |
|---|---|---|
| committer | Sokus <soqs687@gmail.com> | 2023-03-08 13:30:12 +0100 |
| commit | 1ecab2fcbc4a52b481f185ccf87bb38c9691c39e (patch) | |
| tree | 504fdf5d5635246329c3575386342b70263652a8 /core/net/socket.odin | |
| parent | a262c0bbf325051891debe1a86866f5c9059ee58 (diff) | |
Add `set_blocking` for network sockets
Diffstat (limited to 'core/net/socket.odin')
| -rw-r--r-- | core/net/socket.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/net/socket.odin b/core/net/socket.odin index 95eb50496..a24ae8a0b 100644 --- a/core/net/socket.odin +++ b/core/net/socket.odin @@ -173,4 +173,8 @@ shutdown :: proc(socket: Any_Socket, manner: Shutdown_Manner) -> (err: Network_E set_option :: proc(socket: Any_Socket, option: Socket_Option, value: any, loc := #caller_location) -> Network_Error { return _set_option(socket, option, value, loc) +} + +set_blocking :: proc(socket: Any_Socket, should_block: bool) -> (err: Network_Error) { + return _set_blocking(socket, should_block) }
\ No newline at end of file |