C# Class Lidgren.Network.NetUPnP

UPnP support class
Afficher le fichier Open project: tomoprime/CrabBattle Class Usage Examples

Méthodes publiques

Méthode Description
DeleteForwardingRule ( int port ) : bool

Delete a forwarding rule from the router using UPnP

ForwardPort ( int port, string description ) : bool

Add a forwarding rule to the router using UPnP

GetExternalIP ( ) : IPAddress

Retrieve the extern ip using UPnP

NetUPnP ( NetPeer peer ) : System

NetUPnP constructor

Private Methods

Méthode Description
CombineUrls ( string gatewayURL, string subURL ) : string
Discover ( NetPeer peer ) : void
ExtractServiceUrl ( string resp ) : void
SOAPRequest ( string url, string soap, string function ) : XmlDocument

Method Details

DeleteForwardingRule() public méthode

Delete a forwarding rule from the router using UPnP
public DeleteForwardingRule ( int port ) : bool
port int
Résultat bool

ForwardPort() public méthode

Add a forwarding rule to the router using UPnP
public ForwardPort ( int port, string description ) : bool
port int
description string
Résultat bool

GetExternalIP() public méthode

Retrieve the extern ip using UPnP
public GetExternalIP ( ) : IPAddress
Résultat System.Net.IPAddress

NetUPnP() public méthode

NetUPnP constructor
public NetUPnP ( NetPeer peer ) : System
peer NetPeer
Résultat System