Local connection.
More...
#include <base/rmi/LocalConnection.h>
Inherits OrbConnection.
Local connection.
Local connection.
- See also
- LocalConnectionFactory
- Version
- 1.0
◆ LocalConnection()
Initializes the conenction.
- Parameters
-
identifier | The end point identifier. |
◆ ~LocalConnection()
LocalConnection::~LocalConnection |
( |
| ) |
|
|
noexcept |
Destroys the local connection.
◆ getEndPoint()
String LocalConnection::getEndPoint |
( |
| ) |
const |
|
virtualnoexcept |
Returns the identifier of the end point (e.g. "local:///").
Implements OrbConnection.
◆ getReference()
Returns the reference for the specified connection local identifier.
- Parameters
-
identifier | Identifier (e.g. "/MyObject"). |
Implements OrbConnection.
◆ getUrn()
String LocalConnection::getUrn |
( |
| ) |
const |
|
virtualnoexcept |
Returns the global identifier of the scheme (e.g. "urn:rmi:orb:scheme:local").
Implements OrbConnection.
◆ pull()
MemorySize LocalConnection::pull |
( |
uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
virtual |
Pulls data from the stream. EndOfFile is raised if atEnd() would return true.
- Parameters
-
buffer | The buffer to receive the data. |
size | The size of the buffer. |
- Returns
- The number of bytes pulled.
Implements PullInterface.
◆ push()
MemorySize LocalConnection::push |
( |
const uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
virtual |
Pushes data onto the stream. This method may return 0 if the internal buffer is full. EndOfFile is raised if the end has been reached.
- Parameters
-
buffer | The data to be pushed onto the stream. |
size | The size of the buffer. |
- Returns
- The number of bytes pushed.
Implements PushInterface.
◆ pushEnd()
void LocalConnection::pushEnd |
( |
| ) |
|
|
virtual |
This method should be invoked when all data has been pushed onto the stream. Do not invoke push() or pushEnd() hereafter.
Reimplemented from PushInterface.
◆ reconnect()
void LocalConnection::reconnect |
( |
| ) |
|
Reestablishes the connection.