Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

MPS::Proxy Class Reference

Implements a client-side handle on a MPS server object, using a Connection. More...

#include <proxy.h>

Collaboration diagram for MPS::Proxy:

Collaboration graph
[legend]
List of all members.

Public Methods

 Proxy (string const &_address)
void _setCallback (ref< Connection::Callback > callback, Connection::Callback::Method method)

Protected Attributes

ref<Connection_connection

Private Attributes

string address

Detailed Description

Implements a client-side handle on a MPS server object, using a Connection.

Definition at line 45 of file proxy.h.


Constructor & Destructor Documentation

MPS::Proxy::Proxy ( string const & _address )
 

Create a Proxy connecting to the given address.


Member Function Documentation

void MPS::Proxy::_setCallback ( ref< Connection::Callback > callback,
Connection::Callback::Method method )
 

Set up so that the passed-in Connection::Callback's Method will be called by the appropriate Transport's "main loop" when it's next safe to call a _receive_...

method on this Proxy. Once the callback fires, it is deregistered, leaving no registered callbacks. Only one callback can be registered at once - if another is registered, it replaces the first.


Member Data Documentation

ref< Connection > MPS::Proxy::_connection<Connection> [protected]
 

Connection we are using to communicate with the server.

Definition at line 50 of file proxy.h.

string MPS::Proxy::address [private]
 

Resolved object address.

Definition at line 47 of file proxy.h.


The documentation for this class was generated from the following file:
Generated at Wed Aug 15 01:05:31 2001 for mps-cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001