diff options
Diffstat (limited to 'cpp/src/Ice/Protocol.h')
-rw-r--r-- | cpp/src/Ice/Protocol.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/Protocol.h b/cpp/src/Ice/Protocol.h index 7e4fd49954e..99499fb56f3 100644 --- a/cpp/src/Ice/Protocol.h +++ b/cpp/src/Ice/Protocol.h @@ -32,7 +32,7 @@ const ::Ice::Int headerSize = 14; // // The magic number at the front of each message // -const ::Ice::Byte magic[] = { 0x49, 0x63, 0x65, 0x50 }; // 'I', 'c', 'e', 'P' +extern const ::Ice::Byte magic[4]; // // The current Ice protocol and encoding version @@ -51,6 +51,13 @@ const ::Ice::Byte replyMsg = 2; const ::Ice::Byte validateConnectionMsg = 3; const ::Ice::Byte closeConnectionMsg = 4; +// +// The request header, batch request header and reply header. +// +extern const ::Ice::Byte requestHdr[headerSize + sizeof(Ice::Int)]; +extern const ::Ice::Byte requestBatchHdr[headerSize + sizeof(Ice::Int)]; +extern const ::Ice::Byte replyHdr[headerSize]; + } #endif |