Created empty TCPNetworkManager; needs work, I don't even like the name

This commit is contained in:
Kayne Ruse
2013-05-02 01:17:56 +10:00
parent 95f2d212ef
commit b935fcf1d1
7 changed files with 147 additions and 16 deletions
+13 -1
View File
@@ -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