|
AvogadroApp
|
#include <localsocketconnection.h>
Public Member Functions | |
| LocalSocketConnection (QObject *parentObject, QLocalSocket *socket) | |
| LocalSocketConnection (QObject *parentObject, const QString &connectionString) | |
| void | open () override |
| void | start () override |
| void | close () override |
| bool | isOpen () override |
| QString | connectionString () const override |
| bool | send (const PacketType &packet, const EndpointIdType &endpoint) override |
| void | flush () override |
| Public Member Functions inherited from Connection | |
| Connection (QObject *parentObject=nullptr) | |
Additional Inherited Members | |
| Signals inherited from Connection | |
| void | packetReceived (const Avogadro::RPC::PacketType &packet, const Avogadro::RPC::EndpointIdType &endpoint) |
| void | disconnected () |
Provides an implementation of Connection using QLocalSockets. Each instance of the class wraps a QLocalSocket.
<avogadro/rpc/localsocketconnection.h>
|
explicit |
Constructor used by LocalSocketConnectionListener to create a new connection based on an existing QLocalSocket.
|
explicit |
Constructor used by a client to connect to a server.
|
overridevirtual |
Opens the connection to the server.
Implements Connection.
|
overridevirtual |
Start receiving messages on this connection.
Implements Connection.
|
overridevirtual |
Close the underlying socket.
Implements Connection.
|
overridevirtual |
Implements Connection.
|
overridevirtual |
Implements Connection.
|
overridevirtual |
Send the packet on the connection to endpoint.
Implements Connection.
|
overridevirtual |
Flush all pending messages to the other endpoint.
Implements Connection.