#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 |
![]() | |
ConnectionListener (QObject *parentObject=0) | |
Additional Inherited Members | |
![]() | |
enum | Error { AddressInUseError, UnknownError = -1 } |
![]() | |
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 |