yasin1913 / kryonet

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

Client Disconnects immediately #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create a server
2.Create a client
3.Client connects to server

I expect client to get connected and stay or continue that connection until a 
close operation is called. Instead  Client gets connected initially but 
disconnects immediately

I m using Kryonet 2.12 on Windows 7.

Please provide any additional information below.

Original issue reported on code.google.com by binoysku...@gmail.com on 22 Feb 2013 at 8:08

GoogleCodeExporter commented 8 years ago
We are having the same problem here, though it doesnt disconnect right after a 
connection has been established but rather when sending custom packges, which 
have been registered before.

Its kinda hopeless, we tried lots of things. Could someone help?

Original comment by mr_emr...@hotmail.com on 26 Apr 2013 at 12:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have the same Problem, I found a bugfix in a comment on youtube.

IF YOUR CLIENT IMMEDIATELY DISCONNECTS AFTER CONNECTING:
1. Use kryonet version 2.12 instead of the latest version
2. Add an argument to the client/server constructors for a UDP port. For 
example, change this:
server.bind(1881);
to this:
server.bind(1881, 1881);
And do the same thing for the client.connect() function. This will fix your 
problems. Thumbs up so people can see!

Then my projekt was working
Maybe it can help the author of the projekt to find the bug in build 2.18 and 
above

Is the projekt in development or it is discontinoued?

Original comment by paul6...@gmail.com on 17 May 2013 at 10:22

GoogleCodeExporter commented 8 years ago
OP says 2.12 has an issue. #3 says 2.18 is fixed but latest has an issue. The 
tests work, so if you have this issue you will need to debug it: enable trace 
logging, step through it, etc. Not enough information to reproduce.

Original comment by nathan.s...@gmail.com on 17 May 2013 at 4:39

GoogleCodeExporter commented 8 years ago
custom packges must have empty constructor,otherwise serialization will fail!

Original comment by quccm...@gmail.com on 5 Jun 2013 at 11:18