#include <server.h>
Inheritance diagram for MPS::Server:
Public Methods | |
virtual | ~Server () |
string const& | getObjectName () const |
vector<string> | getBoundNames () const |
string | getBoundName (string const &transportName) const |
virtual void | dispatch (InputStream &request, OutputStream &reply)=0 |
Protected Methods | |
Server (string const &_o) | |
Private Types | |
typedef map<string, string> | boundNames_t |
Private Methods | |
void | bindName (Address const &addr) |
void | unbindName (string const &transport) |
Private Attributes | |
boundNames_t | boundNames |
string | objectName |
Friends | |
class | Transport |
Responds to requests which come in over a connection. Subclasses implement particular request dispatch strategies.
Definition at line 49 of file server.h.
|
A transport-vs-address map.
|
|
Construct a Server with the given human-readable name.
|
|
|
|
Register an address that this server is available at.
|
|
Dispatches an method request coming in over a connection.
Reimplemented in MPS::InterfaceServer. Referenced by MPS::InetTransport::InetDispatcher::dispatchRequest(). |
|
Returns the address that this Interface has been bound to via a particular Transport, or the empty-string if this Interface has not been bound to the named transport.
|
|
Returns all addresses that this server has been bound to.
|
|
Retrieve the symbolic/human name for this object.
|
|
Deregister an address that this server was available at.
|
|
Allows access to bindName() and unbindName().
Reimplemented in MPS::InterfaceServer. |
|
All addresses this server is reachable at.
|
|
The human-readable name for this server object.
|