Свойство | Type | Description | |
---|---|---|---|
mcast_addr | List |
Свойство | Type | Description | |
---|---|---|---|
_addr_ip | MemBlock>.Dictionary | ||
_blocked_addrs | MemBlock>.Dictionary | ||
_dhcp | DhcpServer | ||
_dns_a | string>.Dictionary | ||
_dns_ptr | string>.Dictionary | ||
_ip_addr | Address>.Dictionary | ||
_local_ip | MemBlock | ||
_node | StructuredNode | ||
_resolver | WriteOnce |
||
_rx_counters | int>.Dictionary | ||
_sync | object | ||
_tx_counters | int>.Dictionary | ||
_udp_translators | IProtocolTranslator |
Méthode | Description | |
---|---|---|
AddDnsMapping ( string alias, string ip, bool reverse ) : void |
Maps DNS alias to IP address.
|
|
AddIPMapping ( string ip, Brunet.Address addr ) : string |
Maps IP address to Brunet address.
|
|
AddressLookUp ( String name ) : String |
This method does an address lookup on the Dns
|
|
Check ( MemBlock ip, Brunet.Address addr ) : bool | ||
GetStats ( string address ) : string | ||
ManagedAddressResolverAndDns ( StructuredNode node, DhcpServer dhcp, MemBlock local_ip, string name_server, bool forward_queries ) : Brunet |
Constructor for the class, it initializes various objects
|
|
MapLocalDns ( string name ) : bool |
Sets up DNS for localhost
|
|
NameLookUp ( String ip ) : String |
This method does an inverse lookup for the DNS
|
|
RemoveDnsMapping ( string alias, bool reverse ) : void |
Remove Dns alias mapping.
|
|
RemoveIPMapping ( string ip ) : void |
Remove IP to Brunet address mapping.
|
|
Resolve ( MemBlock IP ) : Brunet.Address |
Returns the Brunet address given an IP
|
|
Translate ( MemBlock packet, Brunet.Address from ) : MemBlock |
Implements the ITranslator portion for ManagedAddress..., takes an IP Packet, based upon who the originating Brunet Sender was, changes who the packet was sent from and then switches the destination address to the local nodes address. Takes incomming packets only.
|
Méthode | Description | |
---|---|---|
UpdateCounter ( int>.Dictionary counters, Brunet.Address addr ) : void |
public AddDnsMapping ( string alias, string ip, bool reverse ) : void | ||
alias | string | Dns alias to map |
ip | string | IP address to map |
reverse | bool | If true, add reverve mapping |
Résultat | void |
public AddIPMapping ( string ip, Brunet.Address addr ) : string | ||
ip | string | IP address to map |
addr | Brunet.Address | Brunet address to map |
Résultat | string |
public AddressLookUp ( String name ) : String | ||
name | String | Takes in name as string to lookup |
Résultat | String |
public Check ( MemBlock ip, Brunet.Address addr ) : bool | ||
ip | MemBlock | |
addr | Brunet.Address | |
Résultat | bool |
public GetStats ( string address ) : string | ||
address | string | |
Résultat | string |
public ManagedAddressResolverAndDns ( StructuredNode node, DhcpServer dhcp, MemBlock local_ip, string name_server, bool forward_queries ) : Brunet | ||
node | StructuredNode | Takes in a structured node |
dhcp | DhcpServer | |
local_ip | MemBlock | |
name_server | string | |
forward_queries | bool | |
Résultat | Brunet |
public MapLocalDns ( string name ) : bool | ||
name | string | The DNS alias for the localhost |
Résultat | bool |
public NameLookUp ( String ip ) : String | ||
ip | String | IP address of the name that's being looked up |
Résultat | String |
public RemoveDnsMapping ( string alias, bool reverse ) : void | ||
alias | string | Dns alias to remove |
reverse | bool | If true, remove reverse mapping |
Résultat | void |
public RemoveIPMapping ( string ip ) : void | ||
ip | string | IP address to remove |
Résultat | void |
public Resolve ( MemBlock IP ) : Brunet.Address | ||
IP | MemBlock | A MemBlock of the IP |
Résultat | Brunet.Address |
public Translate ( MemBlock packet, Brunet.Address from ) : MemBlock | ||
packet | MemBlock | The IP Packet to translate. |
from | Brunet.Address | The Brunet address the packet was sent from. |
Résultat | MemBlock |
protected UpdateCounter ( int>.Dictionary counters, Brunet.Address addr ) : void | ||
counters | int>.Dictionary | |
addr | Brunet.Address | |
Résultat | void |
protected Dictionary _blocked_addrs | ||
Résultat | MemBlock>.Dictionary |
protected IProtocolTranslator |
||
Résultat | IProtocolTranslator |