NDEVR
API Documentation
AdaptiveTCPServer

TCP server implementation of NDEVRCommunicationLogic using Qt's QTcpServer for NDEVR protocol. More...

Public Member Functions

 AdaptiveTCPServer (QObject *parent=nullptr)
 Constructs the TCP server.
void start (quint16 port)
 Starts listening on the specified port.

Protected Member Functions

void incomingConnection (qintptr socketDescriptor) override
 Handles a new incoming TCP connection.

Detailed Description

TCP server implementation of NDEVRCommunicationLogic using Qt's QTcpServer for NDEVR protocol.


Definition at line 17 of file AdaptiveTCPServer.h.

Constructor & Destructor Documentation

◆ AdaptiveTCPServer()

AdaptiveTCPServer::AdaptiveTCPServer ( QObject * parent = nullptr)
explicit

Constructs the TCP server.

Parameters
[in]parentOptional parent QObject.

Member Function Documentation

◆ incomingConnection()

void AdaptiveTCPServer::incomingConnection ( qintptr socketDescriptor)
overrideprotected

Handles a new incoming TCP connection.

Parameters
[in]socketDescriptorThe native socket descriptor.

◆ start()

void AdaptiveTCPServer::start ( quint16 port)

Starts listening on the specified port.

Parameters
[in]portThe TCP port to listen on.

The documentation for this class was generated from the following file: