C# Class UPNP.UPnP

Afficher le fichier Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

AddPortMapping() public méthode

public AddPortMapping ( ushort internalPort, ushort externalPort, ProtocolType protocolType, string description ) : bool
internalPort ushort
externalPort ushort
protocolType ProtocolType
description string
Résultat bool

DeletePortMapping() public méthode

public DeletePortMapping ( ushort externalPort, ProtocolType protocolType ) : bool
externalPort ushort
protocolType ProtocolType
Résultat bool

Discover() public méthode

public Discover ( IPAddress localIPAddress ) : bool
localIPAddress System.Net.IPAddress
Résultat bool

GetExternalIP() public méthode

public GetExternalIP ( ) : IPAddress
Résultat System.Net.IPAddress