Diff for /embedaddon/miniupnpc/java/JavaBridgeTest.java between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:16:22 version 1.1.1.2, 2013/07/22 00:36:10
Line 1 Line 1
 import java.nio.ByteBuffer;  import java.nio.ByteBuffer;
   import java.nio.IntBuffer;
   
 import fr.free.miniupnp.*;  import fr.free.miniupnp.*;
   
 /**  /**
Line 27  public class JavaBridgeTest { Line 29  public class JavaBridgeTest {
             return;              return;
         }          }
   
        devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, null);        devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, IntBuffer.allocate(1));
         if (devlist != null) {          if (devlist != null) {
             System.out.println("List of UPNP devices found on the network :");              System.out.println("List of UPNP devices found on the network :");
             for (UPNPDev device = devlist; device != null; device = device.pNext) {              for (UPNPDev device = devlist; device != null; device = device.pNext) {
Line 75  public class JavaBridgeTest { Line 77  public class JavaBridgeTest {
                 if (ret != MiniupnpcLibrary.UPNPCOMMAND_SUCCESS)                  if (ret != MiniupnpcLibrary.UPNPCOMMAND_SUCCESS)
                     System.out.println("GetSpecificPortMappingEntry() failed with code " + ret);                      System.out.println("GetSpecificPortMappingEntry() failed with code " + ret);
                 System.out.println("InternalIP:Port = " +                  System.out.println("InternalIP:Port = " +
                        new String(intClient.array()) + ":" + new String(intPort.array()) +                         new String(intClient.array()) + ":" + new String(intPort.array()) +
                         " (" + new String(desc.array()) + ")");                          " (" + new String(desc.array()) + ")");
                 ret = miniupnpc.UPNP_DeletePortMapping(                  ret = miniupnpc.UPNP_DeletePortMapping(
                         urls.controlURL.getString(0),                          urls.controlURL.getString(0),

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>