Created empty TCPNetworkManager; needs work, I don't even like the name
This commit is contained in:
+13
-1
@@ -16,6 +16,7 @@ Player:
|
||||
[graphical stuff]
|
||||
position
|
||||
velocity
|
||||
avatarName
|
||||
|
||||
-------------------------
|
||||
|
||||
@@ -34,7 +35,7 @@ PlayerManager:
|
||||
|
||||
-------------------------
|
||||
|
||||
Rememer: Top down programming/K.I.S.S.
|
||||
Remember: Top down programming/K.I.S.S.
|
||||
|
||||
KeyDown:
|
||||
up:
|
||||
@@ -52,3 +53,14 @@ end
|
||||
|
||||
-------------------------
|
||||
|
||||
TCP systems
|
||||
|
||||
TCPNetworkManager:
|
||||
Init //opens the TCP server socket, and allocates the socket set
|
||||
Quit //close the TCP server socket, and free the socket set
|
||||
AcceptConnections //accept new connections
|
||||
Send //send to a specific client, closing the connection if an error occured
|
||||
SendAll //send to all clients
|
||||
CheckSockets //non-blocking
|
||||
GetSocket() //get a specific socket
|
||||
total connections in the packet
|
||||
Reference in New Issue
Block a user