Changeset 5735 in orxonox.OLD for branches/network/src/lib/network/network_protocol.h
- Timestamp:
- Nov 23, 2005, 3:13:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_protocol.h
r5617 r5735 8 8 #include "base_object.h" 9 9 10 11 typedef struct Header 12 { 13 byte protocol; 14 byte version; 15 byte senderID; 16 byte receiverID; 17 byte length; 18 byte* data; 19 }; 20 10 21 /*! 11 22 … … 16 27 NetworkProtocol(); 17 28 ~NetworkProtocol(); 18 void writeDataField( /* Attribute: Any*/ ); 29 30 int createHeader(byte* data, int length, int bufferLength, const Synchronizeable& source, unsigned int remoteID); 31 Header ExtractHeader(byte* data, int length); 19 32 20 33 private: 21 34 const unsigned int headerLength = 1; //The Length of the Header in bytes 35 dataFields dFields; 22 36 23 37 };
Note: See TracChangeset
for help on using the changeset viewer.