#include <connection.h>
Inheritance diagram for MPS::Connection:
Public Methods | |
virtual | ~Connection () |
Address const& | getRemoteAddress () const |
virtual OutputStream* | getOutputStream ()=0 |
virtual void | releaseOutputStream (OutputStream *stream)=0 |
virtual InputStream* | getInputStream ()=0 |
virtual void | releaseInputStream (InputStream *stream)=0 |
virtual void | setCallback (ref< Callback > _callback, Callback::Method _method) |
void | fireCallback (InputStream &input) |
Protected Methods | |
Connection (Address const &a) | |
Private Attributes | |
Address | address |
ref<Callback> | callback |
Callback::Method | callbackMethod |
Allows message reception and transmission.
Definition at line 44 of file connection.h.
|
Constructor for subclasses.
Definition at line 59 of file connection.h. |
|
Definition at line 66 of file connection.h. |
|
If a callback is registered, deregisters it, and calls it. Note that callbacks should be called when it's safe to read a complete message from this connection (ie. it won't block to do so). This method should be called from somewhere within Transports' main loops.
Definition at line 120 of file connection.h. |
|
Obtain an InputStream to use to receive a message from the remote object. The caller must call releaseInputStream() when it's finished with the stream.
Reimplemented in FastmsgLink, MPS::InetTransport::InetConnection, and MPS::SimplTransport::SimplConnection. |
|
Obtain an OutputStream to use to send a message to the remote object. The caller must call releaseOutputStream() when it's finished with the stream.
Reimplemented in FastmsgLink, MPS::InetTransport::InetConnection, and MPS::SimplTransport::SimplConnection. |
|
Extract the address of the object we're connected to.
Definition at line 69 of file connection.h. |
|
Signals that the caller is finished with an InputStream obtained via the getInputStream() method.
Reimplemented in FastmsgLink, MPS::InetTransport::InetConnection, and MPS::SimplTransport::SimplConnection. |
|
Signals that the caller is finished with an OutputStream obtained via the getOutputStream() method.
Reimplemented in FastmsgLink, MPS::InetTransport::InetConnection, and MPS::SimplTransport::SimplConnection. |
|
Registers a callback. Override this if you need to do special processing on callback registration (unlikely).
Definition at line 108 of file connection.h. |
|
the address of the remote object.
Definition at line 53 of file connection.h. |
|
currently-registered callback.
Definition at line 54 of file connection.h. |
|
method to invoke on registered callback.
Definition at line 55 of file connection.h. |