Add Java bindings to STUN code in moonlight-common-c

This commit is contained in:
Cameron Gutman
2018-10-26 23:15:06 -07:00
parent 16c4b2532d
commit c9cf485025
5 changed files with 35 additions and 1 deletions

View File

@@ -347,4 +347,8 @@ public class NvConnection {
MoonBridge.sendMouseScroll(scrollClicks);
}
}
public static String findExternalAddressForMdns() {
return MoonBridge.findExternalAddressIP4("stun.stunprotocol.org", 3478);
}
}

View File

@@ -203,5 +203,7 @@ public class MoonBridge {
public static native String getStageName(int stage);
public static native String findExternalAddressIP4(String stunHostName, int stunPort);
public static native void init();
}