C# 클래스 Ipop.StaticDns

Provides a static mapping for all nodes, just so that they can have a unique Dns name as required by classical applications such as Condor. They will be of the format C111222333.ipop, where the ip address is 000.111.222.333.
An IP Address of 11.22.33.44 would translate into C022033044.ipop, the extra "0"s are necessary and keep all names at a constant length of 15 (including the domain name .ipop).
상속: Dns
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 메소드들

메소드 설명
AddressLookUp ( String name ) : String

Called during LookUp to perform translation from hostname to IP. If an entry isn't in cache, we can try to get it from the Dht. Throws an exception if the name is invalid and returns null if no name is found.

NameLookUp ( String ip ) : String

Called during LookUp to perfrom a translation from IP to hostname.

StaticDns ( MemBlock ip_address, MemBlock netmask, string name_server, bool forward_queries ) : Brunet

메소드 상세

AddressLookUp() 공개 메소드

Called during LookUp to perform translation from hostname to IP. If an entry isn't in cache, we can try to get it from the Dht. Throws an exception if the name is invalid and returns null if no name is found.
public AddressLookUp ( String name ) : String
name String The name to lookup
리턴 String

NameLookUp() 공개 메소드

Called during LookUp to perfrom a translation from IP to hostname.
public NameLookUp ( String ip ) : String
ip String The IP to look up.
리턴 String

StaticDns() 공개 메소드

public StaticDns ( MemBlock ip_address, MemBlock netmask, string name_server, bool forward_queries ) : Brunet
ip_address MemBlock
netmask MemBlock
name_server string
forward_queries bool
리턴 Brunet