C# Class UPNP.UPnP

ファイルを表示 Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Methods

Method Description
AddPortMapping ( ushort internalPort, ushort externalPort, ProtocolType protocolType, string description ) : bool
DeletePortMapping ( ushort externalPort, ProtocolType protocolType ) : bool
Discover ( IPAddress localIPAddress ) : bool
GetExternalIP ( ) : IPAddress

Private Methods

Method Description
BuildURL ( string baseUrl, string path ) : string
GetServiceAndEventURL ( string descriptionURL ) : bool
SOAPRequest ( string serviceURL, string soapRequest, string action ) : XmlDocument

Method Details

AddPortMapping() public method

public AddPortMapping ( ushort internalPort, ushort externalPort, ProtocolType protocolType, string description ) : bool
internalPort ushort
externalPort ushort
protocolType ProtocolType
description string
return bool

DeletePortMapping() public method

public DeletePortMapping ( ushort externalPort, ProtocolType protocolType ) : bool
externalPort ushort
protocolType ProtocolType
return bool

Discover() public method

public Discover ( IPAddress localIPAddress ) : bool
localIPAddress System.Net.IPAddress
return bool

GetExternalIP() public method

public GetExternalIP ( ) : IPAddress
return System.Net.IPAddress