views:

479

answers:

1

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

Thanks Sunil Kumar Sahoo