Tristan B. Velloza Kildaire
3107f0a400
- The `Connection` type is now a kind-of `Thread` - Added field `associatedServer` of type `Server` such that a connection can be associated with a given server - Added field `clientSocket` such that a connection can associate the socket with itself - Constructor sets the two above fields and calls the `Thread` super constructor passing in a function pointer to the worker function (currently a while loop) - Implemented `Connection newConnection(Server, Socket)` which produces a new `Connection`, then calls `Server.addConnection()` and finally starts the `Connection`'s thread via `start()`, then returns the Connection |
||
---|---|---|
.github/workflows | ||
branding | ||
source/renaissance | ||
.gitignore | ||
README.md | ||
dub.json |