Changeset 9246 in orxonox.OLD for trunk/src/lib/network/network_stream.h
- Timestamp:
- Jul 11, 2006, 7:50:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_stream.h
r8623 r9246 22 22 class NetworkGameManager; 23 23 24 //!< this structure contains informations about the network node 24 25 class PeerInfo 25 26 { … … 27 28 PeerInfo() { clear(); } 28 29 void clear() { userId = 0; isServer = false; socket = NULL; handshake = NULL; lastAckedState = 0; lastRecvedState = 0; connectionMonitor = NULL; } 30 31 32 public: 29 33 int userId; 30 34 bool isServer; … … 72 76 73 77 void debug(); 74 78 75 79 inline PeerInfo & getPeerInfo( int userId ) { return peers[userId]; } 76 80 … … 80 84 void handleHandshakes(); 81 85 void handleUpstream( int tick ); 82 void handleDownstream(int tick ); 86 void handleDownstream(int tick ); 83 87 void handleNewClient( int userId ); 84 88 void cleanUpOldSyncList(); 85 89 86 90 void writeToNewDict( byte * data, int length, bool upstream ); 87 91 … … 96 100 97 101 int myHostId; 98 102 99 103 int currentState; //!< current state id 100 104 … … 102 106 103 107 std::map<int,int> oldSynchronizeables; //!< used to save recently deleted sync ids to not recreate them 104 108 105 109 byte buf[UDP_PACKET_SIZE]; //!< used by handleUp/Downstream 106 110 byte compBuf[UDP_PACKET_SIZE]; //!< used by handleUp/Downstream
Note: See TracChangeset
for help on using the changeset viewer.