Showing posts with label ECHO. Show all posts
Showing posts with label ECHO. Show all posts

Friday, July 1, 2011

How To Keep Alive TCP connection in case of GPRS

Requirement : POS terminal need permanent TCP connection with server on GPRS.
Problem : Connection break after some time(some minutes/ some hours)
Reason : May be Client/Server or Network Closing TCP connection due to inactivity of communication.
Solution : Send any message after every minute to server, So that it wont idle and wont disconnect.
Note: You can do some Hit and trial and check maximum time span to keep alive your TCP connection.
I think every network have different timeout(not sure).