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