EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

Kryonet No longer works with Android 2.2 #4

Closed ghost closed 10 years ago

ghost commented 10 years ago

From darre...@gmail.com on July 20, 2010 19:17:34

In android 2.2 java.nio.channels.Selector has changed. For it to work in 2.2 you need to add this just above selector = Selector.open(); (line 104 in rev 55)

System.setProperty("java.net.preferIPv6Addresses", "false");

This was tested in cyanogenmod6 on a nexus one, the above line fixed the problem.

Original issue: http://code.google.com/p/kryonet/issues/detail?id=3

ghost commented 10 years ago

From nathan.s...@gmail.com on July 20, 2010 10:50:14

Thanks darrellt, fixed in r56.

Status: Fixed