Results 1 to 7 of 7
Thread: Multiplayer lobby
- 09-22-2009, 06:35 PM #1
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.
- 09-22-2009, 11:10 PM #2
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. :)
- 09-27-2009, 03:32 AM #3
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.
- 09-27-2009, 06:47 AM #4
"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. :)
- 09-27-2009, 07:36 AM #5
How would you get a SocketChannel by accept()ing incoming connections?
- 09-27-2009, 05:52 PM #6
- 09-30-2009, 08:12 AM #7
Thanks for the info, but I'm not expecting more than a few tens of simultaneous connections.
- By lostwake in forum Java AppletsReplies: 0Last Post: 07-23-2009, 11:04 PM
- By JavaForums in forum Forum LobbyReplies: 18Last Post: 02-07-2008, 05:40 AM
- By peiceonly in forum Forum LobbyReplies: 2Last Post: 12-30-2007, 11:43 AM