bool mupnp_ssdpresponse_server_stop(mUpnpSSDPResponseServer* server) { mupnp_log_debug_l4("Entering...\n"); if (server->recvThread != NULL) { mupnp_thread_stop(server->recvThread); mupnp_thread_delete(server->recvThread); server->recvThread = NULL; } mupnp_log_debug_l4("Leaving...\n"); return true; }
bool mupnp_http_server_stop(mUpnpHttpServer *httpServer) { mupnp_log_debug_l4("Entering...\n"); if (httpServer->acceptThread != NULL) { mupnp_thread_stop(httpServer->acceptThread); mupnp_thread_delete(httpServer->acceptThread); httpServer->acceptThread = NULL; } /**** Thanks for Makela Aapo (10/31/05) ****/ if (httpServer->clientThreads != NULL) { mupnp_threadlist_stop(httpServer->clientThreads); mupnp_threadlist_delete(httpServer->clientThreads); httpServer->clientThreads = NULL; } mupnp_log_debug_l4("Leaving...\n"); return true; }