[SOLVED] - jme3test.network.TestMessages doesn’t work

[java]14-dic-2010 19.02.52 com.jme3.network.connection.TCPConnection bind

INFO: [Server#1][TCP] Bound to 0.0.0.0/0.0.0.0:5110

14-dic-2010 19.02.52 com.jme3.network.connection.UDPConnection bind

INFO: [Server#1][UDP] Bound to 0.0.0.0/0.0.0.0:5110

14-dic-2010 19.02.52 com.jme3.network.connection.Server start

INFO: [Server#1][???] Started server.

14-dic-2010 19.02.52 com.jme3.network.connection.TCPConnection connect

INFO: [Client#1][TCP] Connecting to localhost/127.0.0.1:5110

14-dic-2010 19.02.52 com.jme3.network.connection.UDPConnection connect

INFO: [Client#1][UDP] Set target to localhost/127.0.0.1:5110

14-dic-2010 19.02.52 com.jme3.network.connection.TCPConnection accept

INFO: [Server#1][TCP] A client connected with address /127.0.0.1

Sending ping message…

BUILD STOPPED (total time: 2 minutes 4 seconds)[/java]



As you can see, there is a valid connection, but nothing more. Also TestSerialisation doesn’t seem to work. The other test of the package work properly. I tought could be windows firewall blocking UDP connections [spiderMonkey uses even datagram, isn’t it?], but I made a simple UDP server/client java application and it works like a charme. So I don’t know what can be wrong in my pc. Maybe you could help me.

Thanks.

r.

Yeah you have to wait a bit before you can do things so that it can connect. I have it fixed for the tests but the updated files are on another computer …

add Thread.sleep(30); before you try to send a message, that will fix it.

1 Like
add Thread.sleep(30); before you try to send a message, that will fix it.

It works, just with a couple of ms more. Thank you!