#include <avogadro/rpc/connection.h>
|
|
| Connection (QObject *parentObject=nullptr) |
| 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 used to communicate between processes. Subclasses provide concrete implementations, for example based on local sockets.
- See also
- LocalSocketConnection
◆ open()
◆ start()
◆ close()
Close the connection. Once a connection is closed it can't be reused.
Implemented in LocalSocketConnection.
◆ 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 Avogadro::RPC::PacketType & | packet, |
|
|
const Avogadro::RPC::EndpointIdType & | endpoint ) |
|
signal |
Emitted when a new message has been received on this connection.
◆ disconnected
Emitted when the connection is disconnected.