Last change
on this file since 6265 was
6139,
checked in by patrick, 19 years ago
|
trunk: merged branche network with trunk using command: svn merge -r5999:HEAD, conflicts resolved in favor of the trunk bla
|
File size:
565 bytes
|
Rev | Line | |
---|
[5829] | 1 | /*! |
---|
| 2 | * @file simple_sync.h |
---|
| 3 | * implementation of a network sync test |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _READ_SYNC |
---|
| 7 | #define _READ_SYNC |
---|
| 8 | |
---|
| 9 | #include "synchronizeable.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | class ReadSync : public Synchronizeable |
---|
| 13 | { |
---|
| 14 | public: |
---|
| 15 | ReadSync(const char* name); |
---|
| 16 | ~ReadSync(); |
---|
| 17 | |
---|
| 18 | virtual void writeBytes(const byte* data, int length); |
---|
[6139] | 19 | virtual int readBytes(byte* data, int maxLength, int * reciever); |
---|
[5829] | 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 | }; |
---|
| 32 | |
---|
| 33 | #endif /* _READ_SYNC */ |
---|
Note: See
TracBrowser
for help on using the repository browser.