mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-07 00:16:15 +00:00
Add Java bindings to STUN code in moonlight-common-c
This commit is contained in:
@@ -347,4 +347,8 @@ public class NvConnection {
|
||||
MoonBridge.sendMouseScroll(scrollClicks);
|
||||
}
|
||||
}
|
||||
|
||||
public static String findExternalAddressForMdns() {
|
||||
return MoonBridge.findExternalAddressIP4("stun.stunprotocol.org", 3478);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user