Hello,
Can someone help me with a piece of code that creates a new thread, open a connection to a server and wake up every x seconds to keep alive the connection.
Any help will be greatly appreciated.
David
Hello,
Can someone help me with a piece of code that creates a new thread, open a connection to a server and wake up every x seconds to keep alive the connection.
Any help will be greatly appreciated.
David
To my knowledge you cannot keep the connection open, even when you specify the appropriate HTTP-headers the http-connection will be closed after each call by the implementation.
This might be different with TCP sockets, though. But these are not supported by every device.
(You can check the J2ME Polish device database at http://www.j2mepolish.org/devices-overview.html for more information).
Best regards,
Robert