C# Class UPnP.NAT

ファイルを表示 Open project: RegrowthStudios/VoxelRTS

Public Methods

Method Description
DeleteForwardingRule ( int port, ProtocolType protocol ) : void
Discover ( ) : bool
ForwardPort ( int port, ProtocolType protocol, string description ) : void
GetExternalIP ( ) : IPAddress

Private Methods

Method Description
CombineUrls ( string resp, string p ) : string
GetServiceUrl ( string resp ) : string
SOAPRequest ( string url, string soap, string function ) : XmlDocument

Method Details

DeleteForwardingRule() public static method

public static DeleteForwardingRule ( int port, ProtocolType protocol ) : void
port int
protocol ProtocolType
return void

Discover() public static method

public static Discover ( ) : bool
return bool

ForwardPort() public static method

public static ForwardPort ( int port, ProtocolType protocol, string description ) : void
port int
protocol ProtocolType
description string
return void

GetExternalIP() public static method

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