summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/EndpointI.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-04-18 14:33:16 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-04-18 14:33:16 +0200
commit2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc (patch)
tree0a381f9b284eb7ca5acc9bca5a97659d19874f9d /cpp/src/Ice/EndpointI.h
parentICE-4828 - Buffer.h undeclared ptrdiff_t issue on OpenSUSE (diff)
downloadice-2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc.tar.bz2
ice-2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc.tar.xz
ice-2ba4d4e0ca7aeade69ee00ab17d5fa1b69372ffc.zip
Added support for encoding versioning
Diffstat (limited to 'cpp/src/Ice/EndpointI.h')
-rw-r--r--cpp/src/Ice/EndpointI.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/src/Ice/EndpointI.h b/cpp/src/Ice/EndpointI.h
index 86e415ce344..4273de5af27 100644
--- a/cpp/src/Ice/EndpointI.h
+++ b/cpp/src/Ice/EndpointI.h
@@ -101,6 +101,16 @@ public:
virtual bool secure() const = 0;
//
+ // Returns the encoding version supported by this endpoint.
+ //
+ virtual const ::Ice::EncodingVersion& encoding() const;
+
+ //
+ // Returns the encoding version supported by this endpoint.
+ //
+ virtual const ::Ice::ProtocolVersion& protocol() const;
+
+ //
// Return a server side transceiver for this endpoint, or null if a
// transceiver can only be created by an acceptor. In case a
// transceiver is created, this operation also returns a new
@@ -148,9 +158,16 @@ protected:
virtual std::vector<ConnectorPtr> connectors(const std::vector<struct sockaddr_storage>&) const;
friend class EndpointHostResolver;
+ EndpointI(const Ice::ProtocolVersion&, const Ice::EncodingVersion&);
EndpointI();
+
+ void parseOption(const std::string&, const std::string&, const std::string&, const std::string&);
+
virtual ::Ice::Int hashInit() const = 0;
+ const Ice::ProtocolVersion _protocol;
+ const Ice::EncodingVersion _encoding;
+
private:
mutable bool _hashInitialized;