MoleQueue  0.8.0
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Attributes | List of all members
ZeroMqConnection Class Reference

#include <zeromqconnection.h>

Inheritance diagram for ZeroMqConnection:
Connection

Public Member Functions

 ZeroMqConnection (QObject *parentObject, zmq::context_t *context, zmq::socket_t *socket)
 
 ZeroMqConnection (QObject *parentObject, const QString &address)
 
void open ()
 
void start ()
 
void close ()
 
bool isOpen ()
 
QString connectionString () const
 
bool send (const PacketType &packet, const EndpointIdType &endpoint)
 
void flush ()
 
- Public Member Functions inherited from Connection
 Connection (QObject *parentObject=0)
 

Static Public Attributes

static const QString zeroMqPrefix
 

Additional Inherited Members

- Signals inherited from Connection
void packetReceived (const MoleQueue::PacketType &packet, const MoleQueue::EndpointIdType &endpoint)
 
void disconnected ()
 

Detailed Description

Connection subclass using ZeroMQ.

Member Function Documentation

void open ( )
virtual

Open the connection

Implements Connection.

void start ( )
virtual

Start receiving messages on this connection

Implements Connection.

void close ( )
virtual

Close the connection. Once a conneciton is closed if can't reused.

Implements Connection.

bool isOpen ( )
virtual
Returns
true, if the connection is open ( open has been called, false otherwise

Implements Connection.

QString connectionString ( ) const
virtual
Returns
the connect string description the endpoint the connection is connected to.

Implements Connection.

bool send ( const PacketType &  packet,
const EndpointIdType &  endpoint 
)
virtual

Send the packet on the connection to endpoint.

Implements Connection.

void flush ( )
virtual

Flush all pending messages to the other endpoint.

Implements Connection.


The documentation for this class was generated from the following file: