Java bindings for RakNet (https://github.com/OculusVR/RakNet)
Coverage of the original RakNet library is pretty shallow at this point.
TODO: Maven repository.
- git clone https://github.com/hebenon/raknet4j.git
- cd raknet4j
- mvn clean install -Pdarwin
- Add maven dependency to your project (dependency will get resolved from your .m2 cache):
<dependency>
<groupId>com.spireofbabel.raknet4j</groupId>
<artifactId>raknet4j-darwin-x86_64</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Because of how Android handles native libs, adding it to your project is a little different. Add the build product jar file (in /packages/android/target) to your projects /libs directory as normal. Then add the native library files for each of your target architectures in a subdirectory of your /libs folder, named after the target architecture (e.g. "armeabi" or "x86"). You can find the RakNet4J native libs in the /native/android/target/libs folder.
Oliver Skawronek wrote a great guide to using raknet4j in Android.
TODO: