Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/subprojects/network/simple_sync.h @ 5650

Last change on this file since 5650 was 5650, checked in by patrick, 18 years ago

network: finished the simple_sync program

File size: 537 bytes
Line 
1/*!
2 * @file simple_sync.h
3 *  implementation of a network sync test
4 */
5
6#ifndef _SIMPLE_SYNC
7#define _SIMPLE_SYNC
8
9#include "synchronizeable.h"
10
11
12class SimpleSync : public Synchronizeable
13{
14  public:
15    SimpleSync();
16    ~SimpleSync();
17 
18    virtual void writeBytes(byte* data, int length);
19    virtual int readBytes(byte* data);
20   
21  private:
22    virtual void writeDebug();
23    virtual void readDebug();
24
25   
26  private:
27    byte* inData;
28    int   inLength;
29    byte* outData;
30    int   outLength;
31};
32
33#endif /* _SIMPLE_SYNC */
34
Note: See TracBrowser for help on using the repository browser.