Hi i want to stop one specific RTSP client connection , so i tried to close the sockets for that connection and turn off the back ground handlers for that socket. i am able to stop that specific client, but because of that its affecting other client connection. following is the bunch of code i used to close them.
+void RTSPServer::stopwanstreaming(){ + fprintf(stderr,"wan stopping by handler\n"); + + fprintf(stderr,"g_wan_socket= %p g_fClientInputSocket = %p g_fClientOutputSocket=%p\n",g_wan_socket,g_fClientInputSocket,g_fClientOutputSocket); + + if (g_fClientOutputSocket != g_fClientInputSocket) { + envir().taskScheduler().disableBackgroundHandling(g_fClientOutputSocket); + ::closeSocket(g_fClientOutputSocket); + } + + envir().taskScheduler().disableBackgroundHandling(g_fClientInputSocket); + ::closeSocket(g_fClientInputSocket); + + + wisSysInfo->wis_streamer_data.stream_usr_cnt &= 0x00FF; + fprintf(stderr,"usrcnt = %d\n",wisSysInfo->wis_streamer_data.stream_usr_cnt); + + g_fClientInputSocket = g_fClientOutputSocket = -1; + wisSysInfo->wis_streamer_data.stop_stream = 0; + wisSysInfo->cloud_streaming = 0; + + + fprintf(stderr,"deleting wan handler : %p \n",g_wan_connection_handler); + //delete g_wan_connection_handler; + + g_wan_connection_handler = NULL; + g_wan_socket = -1; + +} can you please help me to find out what am i missing, or better way to achieve this. ? Thank you, *With Warm Regards,* Hardik Sangani VVDN Technologies Pvt Ltd *Cell : *+91 9176120633* | Skype : hardikjsangani*
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel