Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5924 was 5822, checked in by bensch, 19 years ago

orxonox/trunk: merged branches/network to the trunk
merged with command:
svn merge -r 5505:HEAD branches/network trunk

conflicts resolved in favor of the trunk (as always :))
also fixed a typo in the #include "SDL_tread.h"

File size: 592 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(const char* name);
16    ~SimpleSync();
17
18    virtual void writeBytes(const byte* data, int length);
19    virtual int readBytes(byte* data) const;
20
21
22  private:
23    virtual void writeDebug() const;
24    virtual void readDebug() const;
25
26
27  private:
28    byte* inData;
29    int   inLength;
30    int   recLength;
31    byte* outData;
32    int   outLength;
33  };
34
35#endif /* _SIMPLE_SYNC */
Note: See TracBrowser for help on using the repository browser.