|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Manages the network connection for node
Field Summary | |
---|---|
Naanou.LookupService.BroadcastListener | broadcastListener |
Naanou.LookupService.PeerDiscovery | disco |
Naanou.Common.ILogger | logger |
Naanou.LookupService.Node | node |
Naanou.LookupService.Remoting | remoting |
Constructor Summary | |
---|---|
Network(Naanou.LookupService.Node node, Naanou.Common.ILogger logger) Constructor |
Property Summary | |
---|---|
string |
Address
Gets the local IP address of machine (or gateway or user spec) |
bool |
IsInternal
Is the node on an internal, private address? |
string |
PrimaryUrl
Gets the primary url for the node |
Method Summary | |
---|---|
void |
AbortQueuedDiscovery() Aborts a previously queued discovery |
bool |
IsInternalAddress(string address) Checks whether the given address is internal/private |
bool |
JoinNetworkAttempt(System.Collections.ArrayList nodes) Attempts to join a network using a list of nodes as starting points |
Naanou.LookupService.NodeAddress |
JoinNetworkAttempt(Naanou.LookupService.Discovery node) Attempts to join a network using node as the starting point. Returns the verified remote address of the node |
void |
NotifyBootstrap() Called when we have joined a network |
void |
OnDiscoveryComplete(object sender, System.EventArgs e) Event triggered when the discovery process completes. |
void |
SetPrimaryAddress(string address) Sets the local address of machine (or gateway) |
bool |
Start() Starts the networking services (remoting) |
void |
StartDiscovery() Starts discovery process |
void |
Stop() Stops network services (broadcast listener and remoting) |
void |
StopDiscovery() Stops discovery process if it needs to be aborted early. |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private Naanou.LookupService.BroadcastListener broadcastListener
private Naanou.LookupService.PeerDiscovery disco
private Naanou.Common.ILogger logger
private Naanou.LookupService.Node node
private Naanou.LookupService.Remoting remoting
Constructor Detail |
---|
internal Network(Naanou.LookupService.Node node, Naanou.Common.ILogger logger)
Constructor
Parameters:
node
- Parent nodelogger
- LoggerProperty Detail |
---|
public string Address
Gets the local IP address of machine (or gateway or user spec)
public bool IsInternal
Is the node on an internal, private address?
public string PrimaryUrl
Gets the primary url for the node
Method Detail |
---|
internal void AbortQueuedDiscovery()
Aborts a previously queued discovery
public bool IsInternalAddress(string address)
Checks whether the given address is internal/private
Parameters:
address
- Address to checkinternal bool JoinNetworkAttempt(System.Collections.ArrayList nodes)
Attempts to join a network using a list of nodes as starting points
Parameters:
nodes
- ArrayList of Naanou.LookupService.Discovery valuesinternal Naanou.LookupService.NodeAddress JoinNetworkAttempt(Naanou.LookupService.Discovery node)
Attempts to join a network using node as the starting point. Returns the verified remote address of the node
Parameters:
node
- Boot nodeinternal void NotifyBootstrap()
Called when we have joined a network
private void OnDiscoveryComplete(object sender, System.EventArgs e)
Event triggered when the discovery process completes.
Parameters:
sender
- Sender of evente
- Event argspublic void SetPrimaryAddress(string address)
Sets the local address of machine (or gateway)
Parameters:
address
- Addressinternal bool Start()
Starts the networking services (remoting)
Returns:
internal void StartDiscovery()
Starts discovery process
internal void Stop()
Stops network services (broadcast listener and remoting)
internal void StopDiscovery()
Stops discovery process if it needs to be aborted early.
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |