Last change
on this file since 7232 was
6341,
checked in by bensch, 19 years ago
|
orxonox/trunk: merged the network branche back to the trunk, so we do not get away from each other to fast
|
File size:
622 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file simple_sync.h |
---|
3 | * implementation of a network sync test |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _WRITE_SYNC |
---|
7 | #define _WRITE_SYNC |
---|
8 | |
---|
9 | #include "synchronizeable.h" |
---|
10 | |
---|
11 | |
---|
12 | class WriteSync : public Synchronizeable |
---|
13 | { |
---|
14 | public: |
---|
15 | WriteSync(const char* name); |
---|
16 | ~WriteSync(); |
---|
17 | |
---|
18 | virtual int writeBytes(const byte* data, int length, int sender); |
---|
19 | virtual int readBytes(byte* data, int maxLength, int * reciever); |
---|
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 /* _WRITE_SYNC */ |
---|
Note: See
TracBrowser
for help on using the repository browser.