Changeset 6667 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Jan 24, 2006, 1:56:03 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_game_manager.cc
r6666 r6667 93 93 { 94 94 if ( !handleRequestRemove( i, data, length, sender ) ) 95 return i; 96 continue; 97 } 98 if ( b == NET_REQUEST_PNODE_PATH ) 99 { 100 if ( !handleRequestPNodePath( i, data, length, sender ) ) 95 101 return i; 96 102 continue; … … 862 868 } 863 869 870 871 bool NetworkGameManager::handleRequestPNodePath(int& i, const byte* data, int length, int sender) 872 {} 873 874 864 875 bool NetworkGameManager::writeToClientBuffer( clientBuffer & cb, byte b ) 865 876 { -
branches/network/src/lib/network/network_game_manager.h
r6666 r6667 15 15 16 16 class TiXmlElement; 17 class PNode; 17 18 18 19 /** … … 92 93 void sendEntityList(int userID); 93 94 95 94 96 private: 95 97 NetworkGameManager(); 96 98 99 100 /* some network signal handlers */ 101 bool handleRequestCreate( int& i, const byte* data, int length, int sender ); 102 bool handleRequestRemove( int& i, const byte* data, int length, int sender ); 103 bool handleCreateEntity( int& i, const byte* data, int length, int sender ); 104 bool handleRemoveEntity( int& i, const byte* data, int length, int sender ); 105 bool handleCreateEntityList( int& i, const byte* data, int length, int sender ); 106 bool handleRemoveEntityList( int& i, const byte* data, int length, int sender ); 107 bool handleYouAreEntity( int& i, const byte* data, int length, int sender ); 108 bool handleRequestSync( int& i, const byte* data, int length, int sender ); 109 bool handleRequestPNodePath(int& i, const byte* data, int length, int sender); 110 111 112 /* some network handlers helper functions */ 97 113 void requestCreateEntity(ClassID classID); 98 114 int executeCreateEntity(ClassID classID, int uniqueID = 0, int owner = 0); 115 BaseObject* doCreateEntity(ClassID classID, int uniqueID, int owner); 99 116 100 117 void requestRemoveEntity(int uniqueID); 101 118 void executeRemoveEntity(int uniqueID); 119 void doRemoveEntity(int uniqueID); 102 120 103 121 void executeRequestSync( int uniqueID, int user ); 122 void doRequestSync(int uniqueID, int userID); 104 123 105 BaseObject* doCreateEntity(ClassID classID, int uniqueID, int owner);106 void doRemoveEntity(int uniqueID);107 void doRequestSync(int uniqueID, int userID);108 124 void doYouAre( int uniqueID ); 125 126 void requestPNodePath(const PNode* node1, const PNode* node2); 127 void executePNodePath(const PNode* node2, const PNode* node2); 128 void doRequestPNodePath(const PNode* node1, const PNode* node2); 109 129 110 130 bool canCreateEntity(ClassID classID); … … 114 134 void resizeBufferVector(int n); 115 135 116 inlinebool writeToClientBuffer( clientBuffer &cb, byte*data, int length );117 inlinebool writeToClientBuffer( clientBuffer &cb, byte b );118 inlinebool writeToClientBuffer( clientBuffer &cb, int i );119 inlinebool readFromClientBuffer( clientBuffer &cb, byte*data, int length );136 bool writeToClientBuffer( clientBuffer &cb, byte*data, int length ); 137 bool writeToClientBuffer( clientBuffer &cb, byte b ); 138 bool writeToClientBuffer( clientBuffer &cb, int i ); 139 bool readFromClientBuffer( clientBuffer &cb, byte*data, int length ); 120 140 121 //helper functions for writeBytes 122 inline bool handleRequestCreate( int& i, const byte* data, int length, int sender ); 123 inline bool handleRequestRemove( int& i, const byte* data, int length, int sender ); 124 inline bool handleCreateEntity( int& i, const byte* data, int length, int sender ); 125 inline bool handleRemoveEntity( int& i, const byte* data, int length, int sender ); 126 inline bool handleCreateEntityList( int& i, const byte* data, int length, int sender ); 127 inline bool handleRemoveEntityList( int& i, const byte* data, int length, int sender ); 128 inline bool handleYouAreEntity( int& i, const byte* data, int length, int sender ); 129 inline bool handleRequestSync( int& i, const byte* data, int length, int sender ); 141 130 142 131 143 private: -
branches/network/src/lib/network/network_socket.cc
r6634 r6667 97 97 /** 98 98 * Default destructor 99 * dont use this from outside: use destroy() instead!! 99 100 */ 100 101 NetworkSocket::~NetworkSocket( ) -
branches/network/src/lib/network/network_socket.h
r6139 r6667 81 81 void init(); 82 82 83 //dont make this public use destroy() instead84 ~NetworkSocket();85 86 83 public: 87 84 88 85 NetworkSocket(); 86 ~NetworkSocket(); 89 87 NetworkSocket(IPaddress ip); 90 88 NetworkSocket(TCPsocket sock);
Note: See TracChangeset
for help on using the changeset viewer.