source:
orxonox.OLD/trunk/src/subprojects/network/simple_sync.h
@
5837
Last change on this file since 5837 was 5822, checked in by bensch, 19 years ago | |
---|---|
File size: 592 bytes |
Rev | Line | |
---|---|---|
[5650] | 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 | ||
12 | class SimpleSync : public Synchronizeable | |
[5807] | 13 | { |
[5650] | 14 | public: |
[5804] | 15 | SimpleSync(const char* name); |
[5650] | 16 | ~SimpleSync(); |
[5800] | 17 | |
[5806] | 18 | virtual void writeBytes(const byte* data, int length); |
19 | virtual int readBytes(byte* data) const; | |
[5800] | 20 | |
[5804] | 21 | |
[5650] | 22 | private: |
[5806] | 23 | virtual void writeDebug() const; |
24 | virtual void readDebug() const; | |
[5650] | 25 | |
[5800] | 26 | |
[5650] | 27 | private: |
28 | byte* inData; | |
29 | int inLength; | |
[5800] | 30 | int recLength; |
[5650] | 31 | byte* outData; |
32 | int outLength; | |
[5807] | 33 | }; |
[5650] | 34 | |
35 | #endif /* _SIMPLE_SYNC */ |
Note: See TracBrowser
for help on using the repository browser.