Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ setAdapter()

virtual void Ice::Connection::setAdapter ( const ObjectAdapterPtr & adapter)
pure virtual

Associates an object adapter with this connection.

When a connection receives a request, it dispatches this request using its associated object adapter. If the associated object adapter is null, the connection rejects any incoming request with an ObjectNotExistException. The default object adapter of an incoming connection is the object adapter that created this connection; the default object adapter of an outgoing connection is the communicator's default object adapter.

Parameters
adapterThe object adapter to associate with this connection.
See also
Communicator::getDefaultObjectAdapter
getAdapter