Results 1 to 7 of 7
  1. #1
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default Multiplayer lobby

    Does anybody know of any free implementations or libraries for multiplayer online game lobbies (such as those at funorb.com or yahoo games)? I had a bit of a Google but couldn't find much.

    Alternatively, any advice for the engineering of such a system would be welcome.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    My advice is find yourself a good NIO framework or roll your own. Start with NIO sockets so you don't have to rewrite it later. :)
    My Hobby Project: LegacyClone

  3. #3
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    NIO doesn't have sockets as far as I can see. Nor support for Object input/output. I don't see the advantage in this situation.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  4. #4
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    "NIO doesn't have sockets as far as I can see."

    It does: SocketChannel

    "I don't see the advantage in this situation."

    Just depends how many connections you plan to have at once? With blocking sockets it requires a thread per connection. With Non-blocking sockets you only need one (or a few) threads to handle all connections. If it's under a hundred connections, then you probably don't need it. :)
    My Hobby Project: LegacyClone

  5. #5
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    How would you get a SocketChannel by accept()ing incoming connections?
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  6. #6
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    I personally found this tutorial helpful:

    Rox Java NIO Tutorial
    My Hobby Project: LegacyClone

  7. #7
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Thanks for the info, but I'm not expecting more than a few tens of simultaneous connections.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

Similar Threads

  1. Multiplayer BlackJack Applet
    By lostwake in forum Java Applets
    Replies: 0
    Last Post: 07-23-2009, 11:04 PM
  2. Welcome to our new forum: Forum Lobby
    By JavaForums in forum Forum Lobby
    Replies: 18
    Last Post: 02-07-2008, 05:40 AM
  3. Java Lobby Forums
    By peiceonly in forum Forum Lobby
    Replies: 2
    Last Post: 12-30-2007, 11:43 AM

Posting Permissions

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