| Revision 217,
855 bytes
checked in by martin, 6 years ago
(diff) |
|
Set svn:eol-style as appropriate for all files
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: ProtocolWire.h |
|---|
| 5 | // Purpose: On the wire structures for Protocol |
|---|
| 6 | // Created: 2003/08/19 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef PROTOCOLWIRE__H |
|---|
| 11 | #define PROTOCOLWIRE__H |
|---|
| 12 | |
|---|
| 13 | #include <sys/types.h> |
|---|
| 14 | |
|---|
| 15 | // set packing to one byte |
|---|
| 16 | #ifdef STRUCTURE_PACKING_FOR_WIRE_USE_HEADERS |
|---|
| 17 | #include "BeginStructPackForWire.h" |
|---|
| 18 | #else |
|---|
| 19 | BEGIN_STRUCTURE_PACKING_FOR_WIRE |
|---|
| 20 | #endif |
|---|
| 21 | |
|---|
| 22 | typedef struct |
|---|
| 23 | { |
|---|
| 24 | char mIdent[32]; |
|---|
| 25 | } PW_Handshake; |
|---|
| 26 | |
|---|
| 27 | typedef struct |
|---|
| 28 | { |
|---|
| 29 | u_int32_t mObjSize; |
|---|
| 30 | u_int32_t mObjType; |
|---|
| 31 | } PW_ObjectHeader; |
|---|
| 32 | |
|---|
| 33 | #define SPECIAL_STREAM_OBJECT_TYPE 0xffffffff |
|---|
| 34 | |
|---|
| 35 | // Use default packing |
|---|
| 36 | #ifdef STRUCTURE_PACKING_FOR_WIRE_USE_HEADERS |
|---|
| 37 | #include "EndStructPackForWire.h" |
|---|
| 38 | #else |
|---|
| 39 | END_STRUCTURE_PACKING_FOR_WIRE |
|---|
| 40 | #endif |
|---|
| 41 | |
|---|
| 42 | #endif // PROTOCOLWIRE__H |
|---|
| 43 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.