C# Класс Library.Net.Upnp.UpnpClient

Наследование: ManagerBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

ClosePort() публичный Метод

public ClosePort ( UpnpProtocolType protocol, int externalPort, System.TimeSpan timeout ) : bool
protocol UpnpProtocolType
externalPort int
timeout System.TimeSpan
Результат bool

Connect() публичный Метод

public Connect ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetExternalIpAddress() публичный Метод

public GetExternalIpAddress ( System.TimeSpan timeout ) : string
timeout System.TimeSpan
Результат string

GetPortEntry() публичный Метод

public GetPortEntry ( int index, System.TimeSpan timeout ) : Information
index int
timeout System.TimeSpan
Результат Information

OpenPort() публичный Метод

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
Результат bool

OpenPort() публичный Метод

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
Результат bool