BlackBerry - How to make socket keep alive for infinite time
-
13-09-2019 - |
Question
I have created socket program in Blackberry. and also set socket to keep alive using the following
socket = (SocketConnection) Connector.open(URL);
socket.setSocketOption(socket.KEEPALIVE, 2);
But my socket connection gets terminated after 2-3 minute. Means if I keep Ideal for 2-3 minute for 2-3 minute then my socket connection gets lost.
So how to make my socket connection to be alive forever although I may be ideal for 1 hour or more than that.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow