Added untested Scala binding

This commit is contained in:
Joseph Henry
2017-10-16 13:40:05 -07:00
parent 5de02d3259
commit 7c04472b68
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
class ZeroTier {
@native def ztjni_socket(socket_family: Int, socket_type: Int, protocol: Int): Int
}
object ZeroTier extends App {
System.loadLibrary("zt")
val libzt = new ZeroTier
val fd = libzt.ztjni_socket(2, 1, 0)
println(s"zts_socket(): $fd")
}