Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003

    simulating sockets

    Since im writing a javaclient for an online, multiplayer game the lack of sockets is a regular pain for me, or so i belive. The way i understand it, simulating a sockets functionality using http would generate alot of extra network traffic? Since i would have to keep asking the server if anything has happend rather than the server being able to tell me as soon as something happend? or am i confused somehow?

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003

    RE: simulating sockets


    Java MIDP implementation in Nokia mobiles does support only http connection, one exeption is
    Series 40 Beta 0.3 SDK which
    contains DatagramConnection
    import javax.microedition.io.DatagramConnection;

    Nokia 6800 Java MIDP suports sockets, you can use it
    but Nokia do not provide any help/support related to the sockets.

    So there is no way to use UDP connection in other models.

    By simulating the features and behaviour of sockets would be quite hard task and beside it would eat a lot of resources.

    One possible way propably would be open the Stream connection to the server and then keeping it open and reading it.
    Or just polling the data from the server.

Posting Permissions

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