Changeset 777 for code/branches/FICN/src/network/Server.h
- Timestamp:
- Dec 31, 2007, 7:40:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/Server.h
r673 r777 16 16 #include <string> 17 17 18 #include "ConnectionManager.h"19 18 #include "PacketManager.h" 20 #include "PacketTypes.h" 21 #include "GameStateManager.h" 22 #include "ClientInformation.h" 23 //#include "enet/enet.h" 24 //#include "NetworkFrameListener.h" 19 #include "NetworkPrereqs.h" 25 20 26 27 namespace network{ 28 29 21 namespace network 22 { 30 23 /** 31 32 33 34 class Server : public PacketDecoder{35 24 * This class is the root class of the network module for a server. 25 * It implements all functions necessary for a Server 26 */ 27 class _NetworkExport Server : public PacketDecoder{ 28 public: 36 29 Server(); 37 30 Server(int port, std::string bindAddress); … … 42 35 bool sendMSG(const char *msg); 43 36 void tick(float time); 44 37 protected: 45 38 void processQueue(); 46 39 void updateGamestate(); 47 40 private: 48 41 bool sendGameState(); 49 42 void processAck( ack *data, int clientID); … … 51 44 GameStateManager *gamestates; 52 45 PacketGenerator packet_gen; 53 46 54 47 ClientInformation *clients; 55 48 }; 56 49 57 50 58 51
Note: See TracChangeset
for help on using the changeset viewer.