|
AvogadroApp
|
#include <localsocketconnectionlistener.h>
Public Member Functions | |
| LocalSocketConnectionListener (QObject *parentObject, const QString &connectionString) | |
| void | start () override |
| void | stop (bool force) override |
| void | stop () override |
| QString | connectionString () const override |
| QString | fullConnectionString () const |
Public Member Functions inherited from ConnectionListener | |
| ConnectionListener (QObject *parentObject=nullptr) | |
Additional Inherited Members | |
Public Types inherited from ConnectionListener | |
| enum | Error { AddressInUseError , UnknownError = -1 } |
Signals inherited from ConnectionListener | |
| void | newConnection (Avogadro::RPC::Connection *connection) |
| void | connectionError (Avogadro::RPC::ConnectionListener::Error errorCode, const QString &message) |
Provides an implementation of ConnectionListener using QLocalServer. Each connection made is emitted as a LocalSocketConnection.
<avogadro/rpc/localsocketconnectionlistener.h>
|
explicit |
Constructor.
| parentObject | parent |
| connectionString | The address that the QLocalServer should listen on. |
|
overridevirtual |
Start listening for incoming connections.
Implements ConnectionListener.
|
overridevirtual |
Stops the connection listener.
| force | If true use QLocalServer::removeServer(...) to remove server. |
Implements ConnectionListener.
|
overridevirtual |
Calls stop(false)
Implements ConnectionListener.
|
overridevirtual |
Implements ConnectionListener.
| QString fullConnectionString | ( | ) | const |