diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-03-28 09:15:31 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-03-28 09:15:31 +0000 |
commit | f50b103aef8960aba3b81c1dfc8628b3aeb744c1 (patch) | |
tree | efcd75359a9002d2266032a0662d21cd7f91854f /cppe/src/IceE/Protocol.cpp | |
parent | Fixed bug where non ASCII characters would be used for the category (diff) | |
download | ice-f50b103aef8960aba3b81c1dfc8628b3aeb744c1.tar.bz2 ice-f50b103aef8960aba3b81c1dfc8628b3aeb744c1.tar.xz ice-f50b103aef8960aba3b81c1dfc8628b3aeb744c1.zip |
Synced with Ice for C++ changes.
Diffstat (limited to 'cppe/src/IceE/Protocol.cpp')
-rw-r--r-- | cppe/src/IceE/Protocol.cpp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/cppe/src/IceE/Protocol.cpp b/cppe/src/IceE/Protocol.cpp new file mode 100644 index 00000000000..0d8331f4cea --- /dev/null +++ b/cppe/src/IceE/Protocol.cpp @@ -0,0 +1,64 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <IceE/Protocol.h> + +namespace IceInternal +{ + +const Ice::Byte magic[] = { 0x49, 0x63, 0x65, 0x50 }; // 'I', 'c', 'e', 'P' + +const Ice::Byte requestHdr[] = +{ + magic[0], + magic[1], + magic[2], + magic[3], + protocolMajor, + protocolMinor, + encodingMajor, + encodingMinor, + requestMsg, + 0, // Compression status + 0, 0, 0, 0, // Message size (placeholder) + 0, 0, 0, 0 // Request id (placeholder) +}; + +const Ice::Byte requestBatchHdr[] = +{ + magic[0], + magic[1], + magic[2], + magic[3], + protocolMajor, + protocolMinor, + encodingMajor, + encodingMinor, + requestBatchMsg, + 0, // Compression status + 0, 0, 0, 0, // Message size (place holder) + 0, 0, 0, 0 // Number of requests in batch (placeholder) +}; + +const Ice::Byte replyHdr[] = +{ + magic[0], + magic[1], + magic[2], + magic[3], + protocolMajor, + protocolMinor, + encodingMajor, + encodingMinor, + replyMsg, + 0, // Compression status + 0, 0, 0, 0 // Message size (placeholder) +}; + +} |