made sockets non-blocking

This commit is contained in:
Daniel Ledda
2025-11-28 19:35:09 +01:00
parent 45d3f28546
commit f311b242c2
4 changed files with 73 additions and 34 deletions

4
os.h
View File

@@ -33,6 +33,9 @@ struct Address;
typedef struct SocketHandle SocketHandle;
struct SocketHandle;
typedef struct ServerEvents ServerEvents;
struct ServerEvents;
typedef struct Socket Socket;
struct Socket {
const Address *address;
@@ -49,6 +52,7 @@ struct Server {
SocketHandle *handle;
SocketList clients;
bool listening;
ServerEvents *events;
};
typedef struct ServerInitInfo ServerInitInfo;