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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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