stec-platform
ADI::AutoQTcpSocket Class Reference
Inheritance diagram for ADI::AutoQTcpSocket:
Collaboration diagram for ADI::AutoQTcpSocket:

Public Slots

void Disconnect ()
 occrs when a socket connection is lost
 
void Connect ()
 
void Error (QAbstractSocket::SocketError socketError)
 Error.
 

Signals

void SignedConnected (QString, int)
 tells when connected to this, with peer and port
 
void SignedDisconnected (QString, int)
 tells when disnected to this, with peer and port
 
void PacketReady (QString, int, QVariantList va)
 Receives a slot from the other side.
 

Public Member Functions

 AutoQTcpSocket (QString ipAddress, int port, bool dodaemon, QObject *parent=nullptr)
 Client Mode Constructor.
 
 AutoQTcpSocket (QTcpSocket *XM, QObject *parent=nullptr)
 Server Mode Constructor. More...
 
virtual ~AutoQTcpSocket ()
 Destructor.
 
void SendQVList (QVariantList &vl)
 Sends a QVariantList to the other side.
 
bool SideChannelCheck (const QVariantList &message)
 checks for side channel pings and pongs
 
virtual void userDataPacket (const QVariantList &msg)
 called when there is a complete message received
 

Constructor & Destructor Documentation

◆ AutoQTcpSocket()

ADI::AutoQTcpSocket::AutoQTcpSocket ( QTcpSocket XM,
QObject parent = nullptr 
)

Server Mode Constructor.

client already connected else we would not be here..

Member Function Documentation

◆ Connect

void ADI::AutoQTcpSocket::Connect ( )
slot

NO Do Client = NO Check Self connection.

Found out self IP address, maybe contain multi address

Do Client ONLY: we don't not want to talk to ourself...But if we are a Relay Client we must talk to ourself so if the Queue is the key forget it..


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