diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Protocol.cpp | 64 | ||||
-rw-r--r-- | cpp/src/Ice/ice.dsp | 4 |
2 files changed, 68 insertions, 0 deletions
diff --git a/cpp/src/Ice/Protocol.cpp b/cpp/src/Ice/Protocol.cpp new file mode 100644 index 00000000000..e405673ec4f --- /dev/null +++ b/cpp/src/Ice/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 <Ice/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) +}; + +} diff --git a/cpp/src/Ice/ice.dsp b/cpp/src/Ice/ice.dsp index d0440dde5ee..a91e3858621 100644 --- a/cpp/src/Ice/ice.dsp +++ b/cpp/src/Ice/ice.dsp @@ -342,6 +342,10 @@ SOURCE=.\PropertyNames.cpp # End Source File
# Begin Source File
+SOURCE=.\Protocol.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\ProtocolPluginFacade.cpp
# End Source File
# Begin Source File
|