LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Disconnect All Clients in Server Side?

 

iReturn =ServerTCPRead  (clientInfoPtr->handle, &TDP.bSendRequestedData,sizeof (TDP.bSendRequestedData), 50000 );//was   10000
if(iReturn<0)
{
GetCtrlVal (pnMTL32Server, PN_SERVER_LIST_CLIENTS, (int *)&clientInfoPtr);
DisconnectClient (clientInfoPtr->handle);  
}		
tcpChk(iReturn);

In My project I am using one server  and one cleint.

how to Disconnect all client in Server Side,before my server cleint project working fine and i added some inteligency in my server code so that if i get ServerTCPRead negative value i will disconnect client in server side..but this is giving problem...if i see cleint list same client registed too many times and finally end up with my server side Application will hang, please suggest me .

in server i have client list panel,if i check cleint list panle too many client with same Ipadress(my project iam using only one cleint).

 

 

0 Kudos
Message 1 of 1
(2,875 Views)