-->
Page 1 of 1

Keep TCP connection on forever

PostPosted: Thu Apr 07, 2016 3:29 am
by helpme
I am able to establish a TCP connection as a client to a remote server using the SMING framework. The code for initiating client connection to server is simple.

Code: Select alltcpClient.connect(SERVER_HOST, SERVER_PORT);


Unfortunately, the connection will close after idling for some time. I would like to keep this connection open forever permanently. How can this be done?