C# Class 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).
Inheritance: Dns
Mostrar archivo Open project: pstjuste/brunet Class Usage Examples

Public Methods

Method Description
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

Method Details

AddressLookUp() public method

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
return String

NameLookUp() public method

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

StaticDns() public method

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
return Brunet