C# 클래스 bedrock.net.Address

파일 보기 프로젝트 열기: codebutler/jabber-net 1 사용 예제들

공개 메소드들

메소드 설명
Address ( IPAddress ip, int port ) : System

Create a new connection endpoint, where the IP address is already known.

Address ( int port ) : System

Address for a server, corresponding to IPAddress.Any.

Address ( string hostname, int port ) : System

New connection endpoint.

LookupSRV ( string prefix, string domain, string &host, int &port ) : void

Look up a DNS SRV record, returning the best host and port number to connect to.

LookupTXT ( string prefix, string domain, string attribute ) : string

Look up a DNS TXT record.

Resolve ( ) : void

Synchronous DNS lookup.

Resolve ( AddressResolved callback ) : void

Async DNS lookup. IP will be null in callback on failure. Callback will be called immediately if IP is already known (e.g. dotted-quad).

ToString ( ) : string

Readable representation of the address. Host (IP):port

비공개 메소드들

메소드 설명
OnResolved ( IAsyncResult ar ) : void

Handle the async DNS response.

PickSRV ( SRVRecord srv ) : SRVRecord

메소드 상세

Address() 공개 메소드

Create a new connection endpoint, where the IP address is already known.
public Address ( IPAddress ip, int port ) : System
ip System.Net.IPAddress
port int
리턴 System

Address() 공개 메소드

Address for a server, corresponding to IPAddress.Any.
public Address ( int port ) : System
port int
리턴 System

Address() 공개 메소드

New connection endpoint.
public Address ( string hostname, int port ) : System
hostname string Host name or dotted-quad IP address
port int Port number
리턴 System

LookupSRV() 공개 정적인 메소드

Look up a DNS SRV record, returning the best host and port number to connect to.
public static LookupSRV ( string prefix, string domain, string &host, int &port ) : void
prefix string The SRV prefix, ending with a dot. Example: "_xmpp-client._tcp."
domain string The domain to check
host string The host name to connect to
port int The port number to connect to
리턴 void

LookupTXT() 공개 정적인 메소드

Look up a DNS TXT record.
public static LookupTXT ( string prefix, string domain, string attribute ) : string
prefix string The prefix, ending in '.'. Example: "_xmppconnect."
domain string The domain to search
attribute string The attribute name to look for. Example: "_xmpp-client-xbosh"
리턴 string

Resolve() 공개 메소드

Synchronous DNS lookup.
public Resolve ( ) : void
리턴 void

Resolve() 공개 메소드

Async DNS lookup. IP will be null in callback on failure. Callback will be called immediately if IP is already known (e.g. dotted-quad).
public Resolve ( AddressResolved callback ) : void
callback AddressResolved Called when resolution complete.
리턴 void

ToString() 공개 메소드

Readable representation of the address. Host (IP):port
public ToString ( ) : string
리턴 string