#include <molequeue/servercore/connection.h>
|
| | 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 |
The Connection class is an interface defining the connection using to communicate between MoleQueue processes. Subclasses provide concrete implements for example based on local socket.
- See also
- LocalSocketConnection
◆ Connection()
| Connection |
( |
QObject * | parentObject = 0 | ) |
|
|
explicit |
◆ open()
◆ start()
◆ close()
◆ isOpen()
◆ connectionString()
| virtual QString connectionString |
( |
| ) |
const |
|
pure virtual |
◆ send()
| virtual bool send |
( |
const PacketType & | packet, |
|
|
const EndpointIdType & | endpoint ) |
|
pure virtual |
◆ flush()
◆ packetReceived
| void packetReceived |
( |
const MoleQueue::PacketType & | packet, |
|
|
const MoleQueue::EndpointIdType & | endpoint ) |
|
signal |
Emitted when a new message has been received on this connection.
- Parameters
-
◆ disconnected
Emited when the connection is disconnected.
The documentation for this class was generated from the following file: