Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2005, 3:13:01 PM (18 years ago)
Author:
bwuest
Message:

network_protocol.cc and network_protocol.h changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_protocol.h

    r5617 r5735  
    88#include "base_object.h"
    99
     10
     11typedef struct Header
     12{
     13  byte protocol;
     14  byte version;
     15  byte senderID;
     16  byte receiverID;
     17  byte length;
     18  byte* data;
     19};
     20
    1021/*!
    1122
     
    1627    NetworkProtocol();
    1728    ~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);
    1932
    2033  private:
    21    
     34    const unsigned int headerLength = 1; //The Length of the Header in bytes
     35    dataFields dFields;
    2236
    2337};
Note: See TracChangeset for help on using the changeset viewer.