mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-24 13:19:26 +00:00
changes java sample according to change of upnpDiscover()
should have been included in 1da63faa4fff5cb30e5d4b848ceef80a292382b9
This commit is contained in:
parent
26960a8a25
commit
b6668e628d
@ -29,7 +29,7 @@ public class JavaBridgeTest {
|
||||
return;
|
||||
}
|
||||
|
||||
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, IntBuffer.allocate(1));
|
||||
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, (byte)2, IntBuffer.allocate(1));
|
||||
if (devlist != null) {
|
||||
System.out.println("List of UPNP devices found on the network :");
|
||||
for (UPNPDev device = devlist; device != null; device = device.pNext) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user