Changed my mind about networking system structure

This commit is contained in:
Kayne Ruse
2013-05-04 14:00:30 +10:00
parent 2dedfa9505
commit f0d4ef0675
8 changed files with 61 additions and 105 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef CLIENT_HPP_
#define CLIENT_HPP_
#include "SDL_net/SDL_net.h"
class Client {
public:
Client(int id, TCPsocket);
int GetID() const {
return id;
}
TCPsocket GetSocket() const {
return socket;
}
private:
int id;
TCPsocket socket;
};
#endif