#include <zeromqconnection.h>
|
| 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 () |
|
| Connection (QObject *parentObject=0) |
|
virtual void | open ()=0 |
|
virtual void | start ()=0 |
|
virtual void | close ()=0 |
|
virtual bool | isOpen ()=0 |
|
virtual QString | connectionString () const =0 |
|
virtual bool | send (const PacketType &packet, const EndpointIdType &endpoint)=0 |
|
virtual void | flush ()=0 |
|
|
static const QString | zeroMqPrefix |
|
Connection subclass using ZeroMQ.
◆ open()
◆ start()
Start receiving messages on this connection
Implements Connection.
◆ close()
Close the connection. Once a conneciton is closed if can't reused.
Implements Connection.
◆ isOpen()
- 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()
Flush all pending messages to the other endpoint.
Implements Connection.
The documentation for this class was generated from the following file: