network types registered

This commit is contained in:
2024-01-03 12:21:12 +06:00
parent 930b35575c
commit fd30713d29
10 changed files with 202 additions and 202 deletions

View File

@@ -6,12 +6,11 @@ extern "C" {
#include "../network_types.h"
typedef struct knSocketUDP {
STRUCT(knSocketUDP,
i64 socketfd;
knIPV4Endpoint localEndpoint;
// TODO socket status enum
} knSocketUDP;
ktid_declare(knSocketUDP);
/* TODO socket status enum */
)
///@note EXAMPLE 1: socket = open(false); bind(socket, localhost:8080); close(socket); - the socket on port 8080 still unavaliable for several minutes
///@note EXAMPLE 2: socket = open(true); bind(socket, localhost:8080); close(socket); - the socket on port 8080 can be opened again