• TcpServer
  • TcpServer Class

    (nymeaserver::TcpServer)

    This class represents the tcp server for nymead. More...

    Header: #include <TcpServer>
    Inherits: nymeaserver::TransportInterface

    Public Functions

    void setServerName(const int &serverName) override

    Reimplemented Public Functions

    virtual bool startServer() override
    virtual bool stopServer() override

    Additional Inherited Members

    Detailed Description

    This class represents the tcp server for nymead.

    The TCP server allows clients to connect to the JSON-RPC API.

    See also WebSocketServer and TransportInterface.

    Member Function Documentation

    void TcpServer::setServerName(const int &serverName)

    Sets the name of this server to the given serverName.

    [override virtual] bool TcpServer::startServer()

    Reimplemented from TransportInterface::startServer().

    Returns true if this TcpServer started successfully.

    See also TransportInterface::startServer().

    [override virtual] bool TcpServer::stopServer()

    Reimplemented from TransportInterface::stopServer().

    Returns true if this TcpServer stopped successfully.

    See also TransportInterface::startServer().