MoleQueue 0.9.0
Loading...
Searching...
No Matches
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

◆ open()

void open ( )
virtual

Open the connection

Implements Connection.

◆ start()

void start ( )
virtual

Start receiving messages on this connection

Implements Connection.

◆ close()

void close ( )
virtual

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

Implements Connection.

◆ isOpen()

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

Implements Connection.

◆ connectionString()

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

Implements Connection.

◆ send()

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

Send the packet on the connection to endpoint.

Implements Connection.

◆ flush()

void flush ( )
virtual

Flush all pending messages to the other endpoint.

Implements Connection.


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