프로퍼티 | 타입 | 설명 | |
---|---|---|---|
mcast_addr | List |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_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 |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 | void |
public AddIPMapping ( string ip, Brunet.Address addr ) : string | ||
ip | string | IP address to map |
addr | Brunet.Address | Brunet address to map |
리턴 | string |
public AddressLookUp ( String name ) : String | ||
name | String | Takes in name as string to lookup |
리턴 | String |
public Check ( MemBlock ip, Brunet.Address addr ) : bool | ||
ip | MemBlock | |
addr | Brunet.Address | |
리턴 | bool |
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 | |
리턴 | Brunet |
public MapLocalDns ( string name ) : bool | ||
name | string | The DNS alias for the localhost |
리턴 | bool |
public NameLookUp ( String ip ) : String | ||
ip | String | IP address of the name that's being looked up |
리턴 | String |
public RemoveDnsMapping ( string alias, bool reverse ) : void | ||
alias | string | Dns alias to remove |
reverse | bool | If true, remove reverse mapping |
리턴 | void |
public RemoveIPMapping ( string ip ) : void | ||
ip | string | IP address to remove |
리턴 | void |
public Resolve ( MemBlock IP ) : Brunet.Address | ||
IP | MemBlock | A MemBlock of the IP |
리턴 | 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. |
리턴 | MemBlock |
protected UpdateCounter ( int>.Dictionary counters, Brunet.Address addr ) : void | ||
counters | int>.Dictionary | |
addr | Brunet.Address | |
리턴 | void |
protected IProtocolTranslator |
||
리턴 | IProtocolTranslator |