The QModbusTcpConnectionObserver class represents the interface for objects that can be passed to QModbusTcpServer::installConnectionObserver. More...
Header: | #include <QModbusTcpConnectionObserver> |
qmake: | QT += serialbus |
Since: | Qt 5.13 |
virtual bool | acceptNewConnection(QTcpSocket *newClient) = 0 |
The interface must be implemented by the developer to be able to monitor every incoming TCP connection from another Modbus client.
See also QModbusTcpServer::installConnectionObserver.
[pure virtual]
bool QModbusTcpConnectionObserver::acceptNewConnection(QTcpSocket
*newClient)This function is a callback for every incoming TCP connection. The user should provide newClient to receive a notification when a new client connection is established and to determine whether the connection is to be accepted.
The function should return true
if the connection is to be accepted. Otherwise, the socket is closed/rejected.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: