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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
// **********************************************************************
//
// Copyright (c) 2003-2015 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.
//
// **********************************************************************
#ifndef ICE_PROTOCOL_INSTANCE_H
#define ICE_PROTOCOL_INSTANCE_H
#include <Ice/ProtocolInstanceF.h>
#include <Ice/CommunicatorF.h>
#include <Ice/PropertiesF.h>
#include <Ice/LoggerF.h>
#include <Ice/EndpointIF.h>
#include <Ice/ConnectorF.h>
#include <Ice/IPEndpointIF.h>
#include <Ice/NetworkF.h>
#include <Ice/Instance.h>
namespace IceInternal
{
class ICE_API ProtocolInstance : public IceUtil::Shared
{
public:
ProtocolInstance(const Ice::CommunicatorPtr&, Ice::Short, const std::string&, bool);
int traceLevel() const
{
return _traceLevel;
}
const std::string& traceCategory() const
{
return _traceCategory;
}
const Ice::LoggerPtr& logger() const;
const std::string& protocol() const
{
return _protocol;
}
Ice::Short type() const
{
return _type;
}
const Ice::PropertiesPtr& properties() const
{
return _properties;
}
bool secure() const
{
return _secure;
}
BufSizeWarnInfo getBufSizeWarn(Ice::Short type);
void setSndBufSizeWarn(Ice::Short type, int size);
void setRcvBufSizeWarn(Ice::Short type, int size);
bool preferIPv6() const;
ProtocolSupport protocolSupport() const;
const std::string& defaultHost() const;
const Address& defaultSourceAddress() const;
const Ice::EncodingVersion& defaultEncoding() const;
NetworkProxyPtr networkProxy() const;
size_t messageSizeMax() const;
int defaultTimeout() const;
void resolve(const std::string&, int, Ice::EndpointSelectionType, const IPEndpointIPtr&,
const EndpointI_connectorsPtr&) const;
protected:
ProtocolInstance(const InstancePtr&, Ice::Short, const std::string&, bool);
friend class Instance;
const InstancePtr _instance;
const int _traceLevel;
const std::string _traceCategory;
const Ice::PropertiesPtr _properties;
const std::string _protocol;
const Ice::Short _type;
const bool _secure;
};
}
#endif
|