• SslServer
  • SslServer Class

    (nymeaserver::SslServer)

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

    Header: #include <SslServer>
    Inherits:

    Public Functions

    SslServer(bool sslEnabled, const QSslConfiguration & config, QObject * parent = nullptr)

    Signals

    void clientConnected(QSslSocket * socket)
    void clientDisconnected(QSslSocket * socket)
    void dataAvailable(QSslSocket * socket, const QByteArray & data)

    Protected Functions

    void incomingConnection(qintptr socketDescriptor)

    Detailed Description

    This class represents the SSL server for nymead.

    The SSL server allows clients to connect to the JSON-RPC API over an encrypted SSL/TLS connection.

    See also WebSocketServer, TransportInterface, and TcpServer.

    Member Function Documentation

    SslServer::SslServer(bool sslEnabled, const QSslConfiguration & config, QObject * parent = nullptr)

    Constructs a SslServer with the given sslEnabled, config and parent.

    [signal] void SslServer::clientConnected(QSslSocket * socket)

    This signal is emitted when a new SSL socket connected.

    [signal] void SslServer::clientDisconnected(QSslSocket * socket)

    This signal is emitted when a socket disconnected.

    [signal] void SslServer::dataAvailable(QSslSocket * socket, const QByteArray & data)

    This signal is emitted when data from socket is available.

    [protected] void SslServer::incomingConnection(qintptr socketDescriptor)

    This method will be called if a new socketDescriptor is about to connect to this SslSocket.