Thanks for all the replies ...

I will be posting the code.

Meanwhile what are the external reasons that the windows socket can fail?
-- coz the time out for this error is Exactly 1 hour...
Steps,
1. Start the communication between the client and server
2. Wait for 1 hour
3. Start communication again
3. Socket errors Client and server closes
However, if there is some communication between the client and server within the 1 hour then the program runs fine.

THIS SEQUENCE doesnt fail
1. Start the communication
2. Wait for 55 ~ 58 minutes
3. Communicate - communication is successful

THIS SEQUENCE doesnt fail either
1. Start the communication
2. Wait for 55 ~ 58 minutes
3. Communicate - communication is successful
4. Wait for another hour
5. Communication doesnt fail.

Thanks in anticipation
Regards