Changeset 7767 in orxonox.OLD for branches/network/src/lib/network/network_stream.h
- Timestamp:
- May 23, 2006, 11:40:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.h
r7731 r7767 12 12 13 13 #include "data_stream.h" 14 #include "network_protocol.h"15 14 #include "server_socket.h" 16 15 #include "handshake.h" 16 #include "connection_monitor.h" 17 17 18 18 class Synchronizeable; 19 19 class NetworkSocket; 20 20 class ServerSocket; 21 class ConnectionMonitor;22 class NetworkProtocol;23 21 class NetworkGameManager; 24 22 … … 27 25 public: 28 26 PeerInfo() { clear(); } 29 void clear() { userId = 0; isServer = false; socket = NULL; handshake = NULL; lastAckedState = 0; lastRecvedState = 0; } 30 int userId; 31 bool isServer; 32 NetworkSocket * socket; 33 Handshake * handshake; 34 int lastAckedState; 35 int lastRecvedState; 36 std::map<int,int> sentStateTicks; 37 std::list<int> ackDelay; 38 int ping; 27 void clear() { userId = 0; isServer = false; socket = NULL; handshake = NULL; lastAckedState = 0; lastRecvedState = 0; connectionMonitor = NULL; } 28 int userId; 29 bool isServer; 30 NetworkSocket * socket; 31 Handshake * handshake; 32 ConnectionMonitor * connectionMonitor; 33 int lastAckedState; 34 int lastRecvedState; 39 35 }; 40 36 … … 85 81 void handleDownstream(); 86 82 void handleNewClient( int userId ); 83 void cleanUpOldSyncList(); 87 84 88 85 89 86 private: 90 NetworkProtocol* networkProtocol;91 ConnectionMonitor* connectionMonitor;92 87 SynchronizeableList synchronizeables; 93 88 PeerList peers; 94 89 ServerSocket* serverSocket; 95 90 int type; 96 Header packetHeader;97 91 bool bActive; 98 92 std::list<int> freeSocketSlots;
Note: See TracChangeset
for help on using the changeset viewer.