summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Protocol.h
blob: aa7eb62edcfa3bb328a5ceda650e192fbe21de43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// **********************************************************************
//
// Copyright (c) 2002
// ZeroC, Inc.
// Billerica, MA, USA
//
// All Rights Reserved.
//
// Ice is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License version 2 as published by
// the Free Software Foundation.
//
// **********************************************************************

#ifndef ICE_PROTOCOL_H
#define ICE_PROTOCOL_H

#include <Ice/Config.h>

namespace IceInternal
{

//
// Size of the Ice protocol header
//
// Protocol version (Byte)
// Encoding version (Byte)
// Message type (Byte)
// Message size (Int)
//
const ::Ice::Int headerSize = 7;

//
// The current Ice protocol and encoding version
//
const ::Ice::Byte protocolVersion = 0;
const ::Ice::Byte encodingVersion = 0;

//
// The Ice protocol message types
//
const ::Ice::Byte requestMsg = 0;
const ::Ice::Byte requestBatchMsg = 1;
const ::Ice::Byte replyMsg = 2;
const ::Ice::Byte validateConnectionMsg = 3;
const ::Ice::Byte closeConnectionMsg = 4;
const ::Ice::Byte compressedRequestMsg = 5;
const ::Ice::Byte compressedRequestBatchMsg = 6;
const ::Ice::Byte compressedReplyMsg = 7;

}

#endif