How have information of client leave for server

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
franck.etienne
Sr. Member
Sr. Member
Posts: 16
Joined: 01 Jun 2016, 13:08

How have information of client leave for server

Post by franck.etienne »

Hi all,
On my OPCUA SDK C++ server, I verify client connection with X509 certificate.
I use method MyServerCallback::logonSessionUser in myservercallback[.h|.cpp].
It's works fine for logon but I need to know when clients disconnect/logoff as a client is authorized to have only 1 session at a time.

There is no logoff or exit or quit session method.

Thank's for your help.

ThomasZ
Sr. Member
Sr. Member
Posts: 12
Joined: 02 Mar 2023, 13:41

Re: How have information of client leave for server

Post by ThomasZ »

Hi,
when the session is closed, the UaSession::close() callback (https://documentation.unified-automation.com/uasdkcpp/1.7.8/html/classUaSession.html#a959abf22325b8962d71f989fdf8558f5) is called.

Post Reply