Ice Reference Documentation | ||
---|---|---|
<<< Previous | Slice Documentation | Next >>> |
local interface Connection |
The user-level interface to a connection.
Close a connection, either gracefully or forcefully.
Create a special proxy that always uses this connection.
Flush any pending batch requests for this connection.
Get the object adapter that dispatches requests for this connection.
Explicitly set an object adapter that dispatches requests that are received over this connection.
Get the timeout for the connection.
Return a description of the connection as human readable text, suitable for logging or error messages.
Return the connection type.
void close(bool force); |
Close a connection, either gracefully or forcefully. If a connection is closed forcefully, it closes immediately, without sending the relevant close connection protocol messages to the peer and waiting for the peer to acknowledge these protocol messages.
Object* createProxy(Identity id); |
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.
void flushBatchRequests(); |
Flush any pending batch requests for this connection. This causes all batch requests that were sent via proxies that use this connection to be sent to the server.
ObjectAdapter getAdapter(); |
Get the object adapter that dispatches requests for this connection.
The object adapter that dispatches requests for the connection, or null if no adapter is set.
void setAdapter(ObjectAdapter adapter); |
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.
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.
<<< Previous | Home | Next >>> |
Ice::ConnectTimeoutException | Up | Ice::ConnectionLostException |