EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

Multiple Server connection #23

Closed ghost closed 10 years ago

ghost commented 10 years ago

From peterpon...@gmail.com on June 13, 2012 01:53:34

What steps will reproduce the problem?

  1. Connect client to server1
  2. Connect client to server2 3. What is the expected output? What do you see instead? Exception in thread "Client" java.lang.IllegalStateException: Cannot connect on the connection's update thread. What version of the product are you using? On what operating system? Netbeans, Win7 Hi ! I'm trying to connect my client to 2 server (1main and 1login), but the client cannot connect ! I tried by closing/stoping my server1 to connect to server2 but always same error...

Original issue: http://code.google.com/p/kryonet/issues/detail?id=22

ghost commented 10 years ago

From davidy...@pubb-it.com on June 27, 2012 09:03:26

Well normally you shouldn't have two connection at the same time... You first connect to login server then if the login server acknowledge your login you connect to game server.

If you really want two connections use threads...

ghost commented 10 years ago

From nathan.s...@gmail.com on November 04, 2012 23:42:50

Or use two clients.

Status: Invalid