PDA

View Full Version : Closing Socket connection...


arunbangari
05-01-2002, 09:49 PM
Hi all,
Iam using SOCKETMGR interface to download some data from the server. Some times when server is down, my application freezes. The problem what i have observed is it keeps trying to read and stays in the same status. I would llike to know is ther any way of closing the socket connection if the socket freezes as mentioned above?
Thanks in Advance.
Arun Bangari

Kevin
05-02-2002, 06:14 PM
You can register for notification on network status, and react accordingly. Please refer to the INotify example included with the SDK, and the INotify documentation included in the API Reference guide.

Also you should be calling ISocketreadable, and checking the return value, utilizing the callback. This is referenced in the Examples and the documentation.