C# 클래스 FubarDev.FtpServer.Address

Abstraction for an IP address
파일 보기 프로젝트 열기: FubarDevelopment/FtpServer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IsEnhancedAddress bool
ParseEnhanced Address
ParseLegacy Address

공개 메소드들

메소드 설명
Address ( AddressFamily addressFamily, string address, int port ) : System

Initializes a new instance of the Address class.

Address ( int port ) : System

Initializes a new instance of the Address class.

This constructor omits the address part.

Address ( string address, int port ) : System

Initializes a new instance of the Address class.

Parse ( string address ) : Address

Parses an IP address

ToString ( ) : string

Converts the IP address to a string as required by the PASV command

ToString ( bool logFormat ) : string

Converts the IP address into a string

ToUri ( ) : Uri

Converts this address to an URI

비공개 메소드들

메소드 설명
IsEnhancedAddress ( string address ) : bool
ParseEnhanced ( string address ) : Address
ParseLegacy ( string address ) : Address

메소드 상세

Address() 공개 메소드

Initializes a new instance of the Address class.
public Address ( AddressFamily addressFamily, string address, int port ) : System
addressFamily AddressFamily The IP address family
address string The IP address
port int The port
리턴 System

Address() 공개 메소드

Initializes a new instance of the Address class.
This constructor omits the address part.
public Address ( int port ) : System
port int The port
리턴 System

Address() 공개 메소드

Initializes a new instance of the Address class.
public Address ( string address, int port ) : System
address string IPv4 address
port int The port
리턴 System

Parse() 공개 정적인 메소드

Parses an IP address
public static Parse ( string address ) : Address
address string The IP address to parse
리턴 Address

ToString() 공개 메소드

Converts the IP address to a string as required by the PASV command
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Converts the IP address into a string
public ToString ( bool logFormat ) : string
logFormat bool true when it should be converted to a loggable format, otherwise the FTP format is used
리턴 string

ToUri() 공개 메소드

Converts this address to an URI
public ToUri ( ) : Uri
리턴 System.Uri