You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG_INFO(Logger, "shutting down opc ua binary server");
Stopped = true;
shutdown(Socket, SHUT_RDWR);
ServerThread->Join();
ServerThread.reset();
}
}
virtualvoidStop()
{
if (ServerThread)
{
LOG_INFO(Logger, "shutting down opc ua binary server");
Stopped = true;
shutdown(Socket, SD_BOTH); //API For Windows//shutdown(Socket, SHUT_RDWR); //API For Linux
ServerThread->Join();
ServerThread.reset();
}
}
Previously, the python version of this project is very easy to use, but due to some requirements changes, I have to develop the C + + version on windows. However, it is found that the support of this project for windows is not so friendly. I hope the author can further optimize it. Thank you :)
freeopcua/src/core/socket_channel.cpp
Lines 51 to 54 in bd13aee
freeopcua/src/server/tcp_server.cpp
Lines 11 to 13 in bd13aee
freeopcua/src/server/tcp_server.cpp
Lines 175 to 185 in bd13aee
Previously, the python version of this project is very easy to use, but due to some requirements changes, I have to develop the C + + version on windows. However, it is found that the support of this project for windows is not so friendly. I hope the author can further optimize it. Thank you :)