xXDylanDog13Xx / kryonet

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

When Binding both TCP and UDP, the listener doesn't run. #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new server object. (Server server;)
2. Add a listener to the server. (server.addListener(new Listener() {..})
3. Bind the server to a random TCP and UDP port. (server.bind(1234, 1235);)
4. Execute the server.
5. Connect to the server using a client. The events within the listener don't 
fire.

What is the expected output? What do you see instead?
The server's listener events should fire. But instead, they don't.

What version of the product are you using? On what operating system?
I am using the newest version of kryonet on Linux, with NetBeans as the IDE.

Please provide any additional information below.
I noticed that it only works when TCP is binded. That is, instead of specifying 
2 integers (TCP_PORT, UDP_PORT) and only specifying 1, for the TCP port, events 
will fire.

Original issue reported on code.google.com by bertram1...@gmail.com on 24 Dec 2010 at 3:39

GoogleCodeExporter commented 9 years ago
Sorry for the delayed response, I missed this issue during the holidays and 
only just now stumbled upon it again.

How are you connecting the client? You will see the behavior described if you 
start the server with both TCP and UDP (server.bind(1234, 1235)) but only use 
TCP when connecting a client (client.connect(6000, 1234)). Be sure to use both 
ports for the client (client.connect(6000, 1234, 1235)).

What errors do you see in the logs?

If you still have a problem, can you post a simple example so I can reproduce 
the issue?

Original comment by nathan.s...@gmail.com on 14 Jan 2011 at 12:01

GoogleCodeExporter commented 9 years ago

Original comment by nathan.s...@gmail.com on 9 Feb 2011 at 10:01