Stop Server - Honeywell 8680i User Manual

Wearable mini mobile computer
Hide thumbs Also See for 8680i:
Table of Contents

Advertisement

Stop Server

The following CStopServerThread and CApp are the classes of the Desktop applica-
tion.
// The thread is working for stopping server which invokes the StopServer API
// really.
typedef void (*OnStopServerCallback)();
// The callback is invoked to tell the main thread that the stopping server is
// done.
void CStopServerThread::setStopServerCallback(OnStopServerCallback stopSrvCb)
{
}
void CStopServerThread::stopServer()
{
}
void CStopServerThread::entry()
{
}
// The main thread of the application to stop server.
CStopServerThread m_stopSrvThread;
void CApp::StopServer()
{
}
// Stop server callback for the thread
void OnStopServer()
{
26
m_pStopSrvCb = stopSrvCb;
stopEvent.signal();
while(stopEvent.wait())
{
StopServer();
if(m_pStopSrvCb != nullptr)
m_pStopSrvCb();
stopEvent.unsingal();
}
m_stopSrvThread.setStopServerCallback(OnStopServer);
m_stopSrvThread.stopServer();
// Stop the server in another thread.
8680i WiFi SDK User Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents