xXDylanDog13Xx / kryonet

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

Listener.received sees FrameworkMessage.KeepAlive messages #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a client, add a listener with received(Connection connection, Object 
o) that logs o.getClass().toString()
2. Connect to a server, stay idle
3. See FrameworkMessage.KeepAlive messages

What is the expected output? What do you see instead?
I assume those messages should be considered internal to the framework and 
hidden to the API consumers.

What version of the product are you using? On what operating system?
http://kryonet.googlecode.com/svn/trunk@132

Please provide any additional information below.
Can be tested using the commit 6a8677496f018553c5ef2bceca3df63c4ed48a26 of 
https://github.com/pcarrier/kryoflood with 2+ clients, and 
removing the "else if (o instanceof FrameworkMessage.KeepAlive) {}" workaround.

Original issue reported on code.google.com by pie...@spotify.com on 21 Jan 2013 at 1:28

GoogleCodeExporter commented 9 years ago
It doesn't hurt to have these messages come to the listeners. They could be 
useful in some situations.

Original comment by nathan.s...@gmail.com on 6 Feb 2013 at 6:42