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).
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).