Base Framework
Public Member Functions | Protected Attributes | List of all members
OrbConnection Class Referenceabstract

ORB connection. More...

#include <base/rmi/OrbConnection.h>

Inherits Polymorphic, ReferenceCountedObject, PushInterface, and PullInterface.

Inherited by LocalConnection.

Public Member Functions

 OrbConnection (ProtectedPointer< Orb > _orb, Reference< OrbBufferPool > _pool) noexcept
 
virtual String getUrn () const noexcept=0
 
void push (OrbBuffer *buffer) noexcept
 
virtual String getEndPoint () const noexcept=0
 
virtual OrbReference getReference (const String &identifier) noexcept=0
 
virtual ~OrbConnection () noexcept
 
- Public Member Functions inherited from Polymorphic
 Polymorphic () noexcept
 
virtual ~Polymorphic () noexcept
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 
- Public Member Functions inherited from PushInterface
virtual void flush ()
 
virtual bool pushBegin (uint64 totalSize)
 
virtual MemorySize push (const uint8 *buffer, MemorySize size)=0
 
virtual void pushEnd ()
 
- Public Member Functions inherited from PullInterface
virtual MemorySize pull (uint8 *buffer, MemorySize size)=0
 

Protected Attributes

ProtectedPointer< Orborb
 
Reference< OrbBufferPoolpool
 

Detailed Description

ORB connection.

A bidirectional connection between a client and server.

Version
1.0

Constructor & Destructor Documentation

◆ OrbConnection()

OrbConnection::OrbConnection ( ProtectedPointer< Orb _orb,
Reference< OrbBufferPool _pool 
)
inlinenoexcept

Outgoing queue. Incoming queue. Initializes the connection.

Parameters
poolThe buffer pool.

◆ ~OrbConnection()

virtual OrbConnection::~OrbConnection ( )
virtualnoexcept

Destroys the connection.

Member Function Documentation

◆ getEndPoint()

virtual String OrbConnection::getEndPoint ( ) const
pure virtualnoexcept

Returns the identifier of the end point (e.g. "tcpip://host:1234").

Implemented in LocalConnection.

◆ getReference()

virtual OrbReference OrbConnection::getReference ( const String identifier)
pure virtualnoexcept

Returns the reference for the specified connection local identifier.

Parameters
identifierIdentifier (e.g. "/MyObject").

Implemented in LocalConnection.

◆ getUrn()

virtual String OrbConnection::getUrn ( ) const
pure virtualnoexcept

Returns the global identifier of the connection scheme (e.g. "urn:rmi:orb:scheme:tcpip").

Implemented in LocalConnection.

◆ push()

void OrbConnection::push ( OrbBuffer buffer)
inlinenoexcept

Pushes a buffer onto the outgoing queue of the connection.

Parameters
bufferThe buffer.

Member Data Documentation

◆ pool

Reference<OrbBufferPool> OrbConnection::pool
protected

Encoder. Decoder. The buffer pool.