coolsarath2002 / kryonet

Automatically exported from code.google.com/p/kryonet
0 stars 0 forks source link

Multiple Server connection #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by peterpon...@gmail.com on 12 Jun 2012 at 11:53

GoogleCodeExporter commented 9 years ago
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...

Original comment by davidy...@pubb-it.com on 27 Jun 2012 at 4:03

GoogleCodeExporter commented 9 years ago
Or use two clients.

Original comment by nathan.s...@gmail.com on 5 Nov 2012 at 7:42