C# Class Library.Net.Upnp.UpnpClient

Inheritance: ManagerBase
Datei anzeigen Open project: Alliance-Network/Library Class Usage Examples

Public Methods

Method Description
ClosePort ( UpnpProtocolType protocol, int externalPort, System.TimeSpan timeout ) : bool
Connect ( System.TimeSpan timeout ) : void
GetExternalIpAddress ( System.TimeSpan timeout ) : string
GetPortEntry ( int index, System.TimeSpan timeout ) : Information
OpenPort ( UpnpProtocolType protocol, int externalPort, int internalPort, string description, System.TimeSpan timeout ) : bool
OpenPort ( UpnpProtocolType protocol, string machineIp, int externalPort, int internalPort, string description, System.TimeSpan timeout ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ClosePortFromService ( string services, string serviceType, string gatewayIp, int gatewayPort, UpnpProtocolType protocol, int externalPort, System.TimeSpan timeout ) : bool
GetExternalIpAddressFromService ( string services, string serviceType, string gatewayIp, int gatewayPort, System.TimeSpan timeout ) : string
GetPortEntryFromService ( string services, string serviceType, string gatewayIp, int gatewayPort, int index, System.TimeSpan timeout ) : Information
GetServicesFromDevice ( Uri &location, IPAddress targetIp, IPAddress localIp, System.TimeSpan timeout ) : string
OpenPortFromService ( string services, string serviceType, string gatewayIp, int gatewayPort, UpnpProtocolType protocol, string machineIp, int externalPort, int internalPort, string description, System.TimeSpan timeout ) : bool
TimeoutCheck ( System.TimeSpan elapsedTime, System.TimeSpan timeout ) : System.TimeSpan

Method Details

ClosePort() public method

public ClosePort ( UpnpProtocolType protocol, int externalPort, System.TimeSpan timeout ) : bool
protocol UpnpProtocolType
externalPort int
timeout System.TimeSpan
return bool

Connect() public method

public Connect ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetExternalIpAddress() public method

public GetExternalIpAddress ( System.TimeSpan timeout ) : string
timeout System.TimeSpan
return string

GetPortEntry() public method

public GetPortEntry ( int index, System.TimeSpan timeout ) : Information
index int
timeout System.TimeSpan
return Information

OpenPort() public method

public OpenPort ( UpnpProtocolType protocol, int externalPort, int internalPort, string description, System.TimeSpan timeout ) : bool
protocol UpnpProtocolType
externalPort int
internalPort int
description string
timeout System.TimeSpan
return bool

OpenPort() public method

public OpenPort ( UpnpProtocolType protocol, string machineIp, int externalPort, int internalPort, string description, System.TimeSpan timeout ) : bool
protocol UpnpProtocolType
machineIp string
externalPort int
internalPort int
description string
timeout System.TimeSpan
return bool