×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    41

    Need help in keeping alive a connection

    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

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    Bremen, Germany
    Posts
    106
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×