• MockTcpServer
  • MockTcpServer Class

    (nymeaserver::MockTcpServer)

    Public Functions

    MockTcpServer(QObject * parent = nullptr)
    ~MockTcpServer()
    void injectData(const QUuid & clientId, const QByteArray & data)

    Reimplemented Public Functions

    virtual void sendData(const QUuid & clientId, const QByteArray & data)
    virtual void sendData(const QList<QUuid> & clients, const QByteArray & data)
    virtual void terminateClientConnection(const QUuid & clientId)

    Public Slots

    bool reconfigureServer(const QHostAddress & address, const uint & port)
    virtual bool startServer()
    virtual bool stopServer()

    Signals

    void connectionTerminated(const QUuid & clientId)
    void outgoingData(const QUuid & clientId, const QByteArray & data)

    Static Public Members

    QList<MockTcpServer *> servers()

    Member Function Documentation

    MockTcpServer::MockTcpServer(QObject * parent = nullptr)

    MockTcpServer::~MockTcpServer()

    [signal] void MockTcpServer::connectionTerminated(const QUuid & clientId)

    void MockTcpServer::injectData(const QUuid & clientId, const QByteArray & data)

    [signal] void MockTcpServer::outgoingData(const QUuid & clientId, const QByteArray & data)

    [slot] bool MockTcpServer::reconfigureServer(const QHostAddress & address, const uint & port)

    [virtual] void MockTcpServer::sendData(const QUuid & clientId, const QByteArray & data)

    [virtual] void MockTcpServer::sendData(const QList<QUuid> & clients, const QByteArray & data)

    [static] QList<MockTcpServer *> MockTcpServer::servers()

    [virtual slot] bool MockTcpServer::startServer()

    [virtual slot] bool MockTcpServer::stopServer()

    [virtual] void MockTcpServer::terminateClientConnection(const QUuid & clientId)