diff options
author | Marc Laukien <marc@zeroc.com> | 2003-01-30 16:17:35 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-01-30 16:17:35 +0000 |
commit | ee691ff3fa0882ffa02117b5156f76e5af2ea9be (patch) | |
tree | 5aa661cbb4a0d521512e15631dec2b066719f01c /cpp/src/Ice/Endpoint.h | |
parent | disable SSLv2 (diff) | |
download | ice-ee691ff3fa0882ffa02117b5156f76e5af2ea9be.tar.bz2 ice-ee691ff3fa0882ffa02117b5156f76e5af2ea9be.tar.xz ice-ee691ff3fa0882ffa02117b5156f76e5af2ea9be.zip |
compression cleanup
Diffstat (limited to 'cpp/src/Ice/Endpoint.h')
-rw-r--r-- | cpp/src/Ice/Endpoint.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/cpp/src/Ice/Endpoint.h b/cpp/src/Ice/Endpoint.h index 2b39c65f2c3..6aa083e8953 100644 --- a/cpp/src/Ice/Endpoint.h +++ b/cpp/src/Ice/Endpoint.h @@ -27,7 +27,7 @@ namespace IceInternal class BasicStream; -class ICE_PROTOCOL_API Endpoint : public ::IceUtil::Shared +class ICE_PROTOCOL_API Endpoint : public IceUtil::Shared { public: @@ -44,20 +44,33 @@ public: // // Return the endpoint type. // - virtual ::Ice::Short type() const = 0; + virtual Ice::Short type() const = 0; // // Return the timeout for the endpoint in milliseconds. 0 means // non-blocking, -1 means no timeout. // - virtual ::Ice::Int timeout() const = 0; + virtual Ice::Int timeout() const = 0; // // Return a new endpoint with a different timeout value, provided // that timeouts are supported by the endpoint. Otherwise the same // endpoint is returned. // - virtual EndpointPtr timeout(::Ice::Int) const = 0; + virtual EndpointPtr timeout(Ice::Int) const = 0; + + // + // Return true if the endpoints support bzip2 compress, or false + // otherwise. + // + virtual bool compress() const = 0; + + // + // Return a new endpoint with a different compression value, + // provided that compression is supported by the + // endpoint. Otherwise the same endpoint is returned. + // + virtual EndpointPtr compress(bool) const = 0; // // Return true if the endpoint is datagram-based. |