Esempio n. 1
0
 public virtual void deletePortMapping(UPnP upnp, string remoteHost, int externalPort, string protocol)
 {
     if (first != null)
     {
         upnp.deletePortMapping(buildUrl(first.controlUrl), first.serviceType, remoteHost, externalPort, protocol);
     }
 }
Esempio n. 2
0
 public virtual void addPortMapping(UPnP upnp, string remoteHost, int externalPort, string protocol, int internalPort, string internalClient, string description, int leaseDuration)
 {
     if (first != null)
     {
         upnp.addPortMapping(buildUrl(first.controlUrl), first.serviceType, remoteHost, externalPort, protocol, internalPort, internalClient, description, leaseDuration);
     }
 }
Esempio n. 3
0
 public ListenerThread(UPnP upnp, IGD igd)
 {
     this.upnp = upnp;
     this.igd  = igd;
 }
Esempio n. 4
0
 public DiscoverThread(UPnP outerInstance)
 {
     this.outerInstance = outerInstance;
 }
Esempio n. 5
0
 public virtual bool isConnected(UPnP upnp)
 {
     return("Connected".Equals(upnp.getStatusInfo(buildUrl(first.controlUrl), first.serviceType)));
 }
Esempio n. 6
0
 public virtual string getExternalIPAddress(UPnP upnp)
 {
     return(upnp.getExternalIPAddress(buildUrl(first.controlUrl), first.serviceType));
 }