array :: package core.array
memory :: package core.memory
alloc :: package core.alloc
+ os :: package core.os
use package core.intrinsics.onyx { __zero_value }
}
#error "Expected multi-threading to be enabled for TCP server.";
}
+// Should TCP_Connection be an abstraction of both the client and the server?
+// Or is there not enough shared between them to justify that?
TCP_Connection :: struct {
socket: Socket;
}
}
+ if client_count == 0 {
+ os.sleep(pulse_time_ms);
+ return true;
+ }
+
clients_with_messages := wait_to_get_client_messages(server);
defer if clients_with_messages.data != null do cfree(clients_with_messages.data);