api question

 
how can i know the connection was cut?

api 3.85

thanks
 
please read manual
===
int MtSetPumpingMode( const int handle, const HWND destwnd, const UINT eventmsg );
Request to the server to set data pumping mode (passive mode). This mode assumes a reduction of
traffic as the server without additional inquiries of the client, will send the new data. This mode
assumes more operative to receive data, quotations, news, changes of opened positions and changes
on the account.
=====================================================================================================
Important! After transferring of the socket object in pumping mode of the data it is inadmissible
"not allowed" to request the server through the given socket any inquiries except for inquiries about
break on connection MtDisconnect. It is possible to call the following functions: MtGetTradeRecords,
MtGetSecurities, MtAddSymbol, MtHideSymbol, MtGetUpdatedTickInfo, MtGetLastNews, MtGetLastMail.
=====================================================================================================
handle – socket handle;
destwnd – window handle to which there will come messages on receipt of the new data from a server;
eventmsg – the identifier of the message which will be sent to the window. As parameter WPARAM one
of values can be passed: UPDATE_BIDASK, UPDATE_NEWS, UPDATE_TRADES, UPDATE_MAIL or
END_PUMPING. As parameter LPARAM will be passed the handle socket object that sent the message.
===
END_PUMPING message determines connection loss