×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    12

    Help with my thesis about j2me

    I'm atudent that is working on my thesis now.I still have problem on http server and tcp server.

    1)Firstly, is that j2me wireless toolkit can be used to develop multiplayer games? what is the difference if using SDK on MForca?

    2)In http srver, the server cannot open a connection to the client.If i want to play a multiplayer game with my opponent, i will send a http request to the server. how the server will inform my opponent?Isn't that the opponent only start polling every x second from the server only the game has started betwen the players?then, how my opponent get my invitation? Is that my opponent phone will automatically poll from the server once the phone is on or it just polling from the server only every x second once the multiplayer games has started?

    3) In http server, is it use http connection? and in tcp server, it use tcp connection?what is the difference in j2me coding between http connection and tcp connection?Can give me the examples?Because i really confuse with http server and tcp server.i know tcp server can push data to the client.how it push?

  2. #2
    Registered User
    Join Date
    Feb 2004
    Posts
    15
    I guess you'll have to use polling to get a message from server to client. For inviting people to games, the PushRegistry might be used: when someone invites you, the server sends an SMS message to a specific port on your mobile phone which causes the AMS to lauch the game MIDlet. Then, the midlet can show the user a message like "X is inviting you to a game, would you like to join?"

    When using TCP/IP sockets it is possible for the server to send message to the client, if there already is an open socket (opened by the client). Socket programming is practically about writing bytes to an OutputStream and reading bytes from an InputStream.

Posting Permissions

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