stec-platform
ADI::AutoQTcpServer Class Reference

The AutoQTcpServer class This is a level #1 layer class.. It does all the connections to all the nodes contained within the segment. More...

#include <autoqtcpserver.h>

Inheritance diagram for ADI::AutoQTcpServer:
Collaboration diagram for ADI::AutoQTcpServer:

Public Slots

void WriteAsDaemon (QString Key, QVariantList &vl)
 WriteAsDaemon. More...
 
void WriteAsClient (QString Key, QVariantList &vl)
 WriteAsClient. More...
 

Signals

void SigClientConnected (QString key)
 signal client connected with the key of key
 
void SigClientDisconnected (QString key)
 signal client disconnected with the key of key
 
void SigDaemonConnected (QString key)
 signal daemon connected with key of key
 
void SigDaemonDisconnected (QString key)
 signal daemon disconnected with key of key
 
void SigDaemonPacketReady (QString key, QVariantList msg)
 signal Daemon message packet ready for key of key
 
void SigClientPacketReady (QString key, QVariantList msg)
 signal Client message packet ready for key of key
 

Public Member Functions

 AutoQTcpServer (QObject *parent=nullptr)
 Constructor.
 
virtual ~AutoQTcpServer ()
 Destructor. More...
 
void StartDaemon (QString interface, QString netmask, int servicePort, bool doDaemon=true, bool doClient=true)
 start the daemon process More...
 

Detailed Description

The AutoQTcpServer class This is a level #1 layer class.. It does all the connections to all the nodes contained within the segment.

Constructor & Destructor Documentation

◆ ~AutoQTcpServer()

ADI::AutoQTcpServer::~AutoQTcpServer ( )
virtual

Destructor.

Stop accepting new connection

Stop the server for Daemon case Client only no need otherwise crash

Member Function Documentation

◆ StartDaemon()

void ADI::AutoQTcpServer::StartDaemon ( QString  interface,
QString  netmask,
int  servicePort,
bool  doDaemon = true,
bool  doClient = true 
)

start the daemon process

Found out self IP address, maybe contain multi address

Allow to connect self if do Client only

◆ WriteAsClient

void ADI::AutoQTcpServer::WriteAsClient ( QString  Key,
QVariantList &  vl 
)
slot

WriteAsClient.

Parameters
Key
vl

◆ WriteAsDaemon

void ADI::AutoQTcpServer::WriteAsDaemon ( QString  Key,
QVariantList &  vl 
)
slot

WriteAsDaemon.

Parameters
Key
vl

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