|
Ice 3.7 C++98 API Reference
|
The user-level interface to a connection. More...
#include <Ice/Ice.h>


Public Types | |
| typedef ConnectionPtr | PointerType |
Public Member Functions | |
| virtual AsyncResultPtr | begin_flushBatchRequests (CompressBatch compress)=0 |
| Flush any pending batch requests for this connection. | |
| virtual AsyncResultPtr | begin_flushBatchRequests (CompressBatch compress, const Callback_Connection_flushBatchRequestsPtr &cb, const LocalObjectPtr &cookie=0)=0 |
| Flush any pending batch requests for this connection. | |
| virtual AsyncResultPtr | begin_flushBatchRequests (CompressBatch compress, const CallbackPtr &cb, const LocalObjectPtr &cookie=0)=0 |
| Flush any pending batch requests for this connection. | |
| virtual AsyncResultPtr | begin_heartbeat ()=0 |
| Send a heartbeat message. | |
| virtual AsyncResultPtr | begin_heartbeat (const Callback_Connection_heartbeatPtr &cb, const LocalObjectPtr &cookie=0)=0 |
| Send a heartbeat message. | |
| virtual AsyncResultPtr | begin_heartbeat (const CallbackPtr &cb, const LocalObjectPtr &cookie=0)=0 |
| Send a heartbeat message. | |
| virtual void | close (ConnectionClose mode) throw () =0 |
| Manually close the connection using the specified closure mode. | |
| virtual ObjectPrx | createProxy (const Identity &id) const =0 |
| Create a special proxy that always uses this connection. | |
| virtual void | end_flushBatchRequests (const AsyncResultPtr &result)=0 |
| Flush any pending batch requests for this connection. | |
| virtual void | end_heartbeat (const AsyncResultPtr &result)=0 |
| Send a heartbeat message. | |
| virtual void | flushBatchRequests (CompressBatch compress)=0 |
| Flush any pending batch requests for this connection. | |
| virtual ACM | getACM () throw () =0 |
| Get the ACM parameters. | |
| virtual ObjectAdapterPtr | getAdapter () const throw () =0 |
| Get the object adapter that dispatches requests for this connection. | |
| virtual EndpointPtr | getEndpoint () const throw () =0 |
| Get the endpoint from which the connection was created. | |
| virtual ConnectionInfoPtr | getInfo () const =0 |
| Returns the connection information. | |
| virtual void | heartbeat ()=0 |
| Send a heartbeat message. | |
| virtual void | setACM (const IceUtil::Optional< Int > &timeout, const IceUtil::Optional< ACMClose > &close, const IceUtil::Optional< ACMHeartbeat > &heartbeat)=0 |
| Set the active connection management parameters. | |
| virtual void | setAdapter (const ObjectAdapterPtr &adapter)=0 |
| Explicitly set an object adapter that dispatches requests that are received over this connection. | |
| virtual void | setBufferSize (Int rcvSize, Int sndSize)=0 |
| Set the connection buffer receive/send size. | |
| virtual void | setCloseCallback (const CloseCallbackPtr &callback)=0 |
| Set a close callback on the connection. | |
| virtual void | setHeartbeatCallback (const HeartbeatCallbackPtr &callback)=0 |
| Set a heartbeat callback on the connection. | |
| virtual void | throwException () const =0 |
| Throw an exception indicating the reason for connection closure. | |
| virtual Int | timeout () const throw () =0 |
| Get the timeout for the connection. | |
| virtual::std::string | toString () const throw () =0 |
| Return a description of the connection as human readable text, suitable for logging or error messages. | |
| virtual::std::string | type () const throw () =0 |
| Return the connection type. | |
| virtual | ~Connection () |
| Public Member Functions inherited from Ice::LocalObject | |
| virtual bool | operator< (const LocalObject &) const |
| virtual bool | operator== (const LocalObject &) const |
| Public Member Functions inherited from IceUtil::Shared | |
| void | __clearFlag (unsigned char flag) |
| virtual void | __decRef () |
| virtual int | __getRef () const |
| bool | __hasFlag (unsigned char flag) |
| virtual void | __incRef () |
| void | __setFlag (unsigned char flag) |
| virtual void | __setNoDelete (bool) |
| Shared & | operator= (const Shared &) |
| Shared () | |
| Shared (const Shared &) | |
| virtual | ~Shared () |
Additional Inherited Members | |
| Static Public Attributes inherited from IceUtil::Shared | |
| static const unsigned char | NoDelete |
| Protected Attributes inherited from IceUtil::Shared | |
| unsigned char | _flags |
| IceUtilInternal::Atomic | _ref |
The user-level interface to a connection.
|
virtual |
|
pure virtual |
Flush any pending batch requests for this connection.
This means all batch requests invoked on fixed proxies associated with the connection.
| compress | Specifies whether or not the queued batch requests should be compressed before being sent over the wire. |
|
pure virtual |
Flush any pending batch requests for this connection.
This means all batch requests invoked on fixed proxies associated with the connection.
| compress | Specifies whether or not the queued batch requests should be compressed before being sent over the wire. |
| cb | Callback to be invoked when the invocation completes |
| cookie | Extra data to associate with the invocation. |
|
pure virtual |
Flush any pending batch requests for this connection.
This means all batch requests invoked on fixed proxies associated with the connection.
| compress | Specifies whether or not the queued batch requests should be compressed before being sent over the wire. |
| cb | Callback to be invoked when the invocation completes |
| cookie | Extra data to associate with the invocation. |
|
pure virtual |
Send a heartbeat message.
|
pure virtual |
Send a heartbeat message.
| cb | Callback to be invoked when the invocation completes |
| cookie | Extra data to associate with the invocation. |
|
pure virtual |
Send a heartbeat message.
| cb | Callback to be invoked when the invocation completes |
| cookie | Extra data to associate with the invocation. |
|
pure virtual | |||||||||||||
Manually close the connection using the specified closure mode.
| mode | Determines how the connection will be closed. |
Create a special proxy that always uses this connection.
This can be used for callbacks from a server to a client if the server cannot directly establish a connection to the client, for example because of firewalls. In this case, the server would create a proxy using an already established connection from the client.
| id | The identity for which a proxy is to be created. |
|
pure virtual |
Flush any pending batch requests for this connection.
This means all batch requests invoked on fixed proxies associated with the connection.
| result | The asynchronous result object returned by the begin_ method. |
|
pure virtual |
Send a heartbeat message.
| result | The asynchronous result object returned by the begin_ method. |
|
pure virtual |
Flush any pending batch requests for this connection.
This means all batch requests invoked on fixed proxies associated with the connection.
| compress | Specifies whether or not the queued batch requests should be compressed before being sent over the wire. |
|
pure virtual | ||||||||||||
|
pure virtual | ||||||||||||
Get the object adapter that dispatches requests for this connection.
|
pure virtual | ||||||||||||
Get the endpoint from which the connection was created.
|
pure virtual |
Returns the connection information.
|
pure virtual |
Send a heartbeat message.
|
pure virtual |
Set the active connection management parameters.
| timeout | The timeout value in seconds, must be >= 0. |
| close | The close condition |
| heartbeat | The hertbeat condition |
|
pure virtual |
Explicitly set an object adapter that dispatches requests that are received over this connection.
A client can invoke an operation on a server using a proxy, and then set an object adapter for the outgoing connection that is used by the proxy in order to receive callbacks. This is useful if the server cannot establish a connection back to the client, for example because of firewalls.
| adapter | The object adapter that should be used by this connection to dispatch requests. The object adapter must be activated. When the object adapter is deactivated, it is automatically removed from the connection. Attempts to use a deactivated object adapter raise ObjectAdapterDeactivatedException |
Set the connection buffer receive/send size.
| rcvSize | The connection receive buffer size. |
| sndSize | The connection send buffer size. |
|
pure virtual |
Set a close callback on the connection.
The callback is called by the connection when it's closed. The callback is called from the Ice thread pool associated with the connection. If the callback needs more information about the closure, it can call Connection#throwException.
| callback | The close callback object. |
|
pure virtual |
Set a heartbeat callback on the connection.
The callback is called by the connection when a heartbeat is received. The callback is called from the Ice thread pool associated with the connection.
| callback | The heartbeat callback object. |
|
pure virtual |
Throw an exception indicating the reason for connection closure.
For example, CloseConnectionException is raised if the connection was closed gracefully, whereas ConnectionManuallyClosedException is raised if the connection was manually closed by the application. This operation does nothing if the connection is not yet closed.
|
pure virtual | ||||||||||||
Get the timeout for the connection.
|
pure virtual | ||||||||||||
Return a description of the connection as human readable text, suitable for logging or error messages.
|
pure virtual | ||||||||||||
Return the connection type.
This corresponds to the endpoint type, i.e., "tcp", "udp", etc.