C# 클래스 Open.Nat.NatDevice

Represents a NAT device and provides access to the operation set that allows open (forward) ports, close ports and get the externa (visible) IP address.
파일 보기 프로젝트 열기: mcatanzariti/Open.NAT 1 사용 예제들

공개 메소드들

메소드 설명
CreatePortMapAsync ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task

Creates the port map asynchronous.

DeletePortMapAsync ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task

Deletes a mapped port asynchronous.

GetAllMappingsAsync ( ) : Task>

Gets all mappings asynchronous.

GetExternalIPAsync ( ) : Task

Gets the external (visible) IP address asynchronous. This is the NAT device IP address

GetSpecificMappingAsync ( Protocol protocol, int port ) : Task

Gets the specified mapping asynchronous.

보호된 메소드들

메소드 설명
RegisterMapping ( Open.Nat.Mapping mapping ) : void
UnregisterMapping ( Open.Nat.Mapping mapping ) : void

비공개 메소드들

메소드 설명
ReleaseAll ( ) : void
ReleaseMapping ( IEnumerable mappings ) : void
ReleaseSessionMappings ( ) : void
RenewMapping ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task
RenewMappings ( ) : System.Threading.Tasks.Task
Touch ( ) : void

메소드 상세

CreatePortMapAsync() 공개 추상적인 메소드

Creates the port map asynchronous.
MappingException
public abstract CreatePortMapAsync ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task
mapping Open.Nat.Mapping The Mapping entry.
리턴 System.Threading.Tasks.Task

DeletePortMapAsync() 공개 추상적인 메소드

Deletes a mapped port asynchronous.
MappingException-class
public abstract DeletePortMapAsync ( Open.Nat.Mapping mapping ) : System.Threading.Tasks.Task
mapping Open.Nat.Mapping The Mapping entry.
리턴 System.Threading.Tasks.Task

GetAllMappingsAsync() 공개 추상적인 메소드

Gets all mappings asynchronous.
MappingException
public abstract GetAllMappingsAsync ( ) : Task>
리턴 Task>

GetExternalIPAsync() 공개 추상적인 메소드

Gets the external (visible) IP address asynchronous. This is the NAT device IP address
MappingException
public abstract GetExternalIPAsync ( ) : Task
리턴 Task

GetSpecificMappingAsync() 공개 추상적인 메소드

Gets the specified mapping asynchronous.
public abstract GetSpecificMappingAsync ( Protocol protocol, int port ) : Task
protocol Protocol The protocol.
port int The port.
리턴 Task

RegisterMapping() 보호된 메소드

protected RegisterMapping ( Open.Nat.Mapping mapping ) : void
mapping Open.Nat.Mapping
리턴 void

UnregisterMapping() 보호된 메소드

protected UnregisterMapping ( Open.Nat.Mapping mapping ) : void
mapping Open.Nat.Mapping
리턴 void