Class NetworkNodes
Utility class for setting network communications behavior as well as interacting with the cache of remote network nodes
Inheritance
System.Object
NetworkNodes
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OASData
Assembly: OASData.dll
Syntax
public class NetworkNodes
Properties
TCPPortNumber
Default is 58727. Changing this port in a running application will cause all client connections to disconnect and reconnect.
Declaration
public int TCPPortNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
AddBackupNetworkNode(String, String)
Declaration
public void AddBackupNetworkNode(string Original, string Revised)
Parameters
Type | Name | Description |
---|---|---|
System.String | Original | |
System.String | Revised |
AddNetworkNodeAlias(String, String)
Add a network node alias assignement to the local cache
Declaration
public void AddNetworkNodeAlias(string Original, string Revised)
Parameters
Type | Name | Description |
---|---|---|
System.String | Original | current network node alias |
System.String | Revised | new alias |
GetBackupNetworkNode(String)
Declaration
public string GetBackupNetworkNode(string Original)
Parameters
Type | Name | Description |
---|---|---|
System.String | Original |
Returns
Type | Description |
---|---|
System.String |
GetNetworkNodeAlias(String)
Get a network node by alias
Declaration
public string GetNetworkNodeAlias(string Original)
Parameters
Type | Name | Description |
---|---|---|
System.String | Original | alias for node |
Returns
Type | Description |
---|---|
System.String | Network node |
RemoveBackupNetworkNode(String)
Declaration
public void RemoveBackupNetworkNode(string Original)
Parameters
Type | Name | Description |
---|---|---|
System.String | Original |
RemoveNetworkNodeAlias(String)
Remove a network node alis from cache
Declaration
public void RemoveNetworkNodeAlias(string Original)
Parameters
Type | Name | Description |
---|---|---|
System.String | Original | alias to remove |
SetReconnectTime(Int32)
Set the clients reconnect time in seconds
Declaration
public void SetReconnectTime(int Rate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Rate | reconnect time |
SetWatchDogRate(Int32)
Set the clients watchdog rate in seconds
Declaration
public void SetWatchDogRate(int Rate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Rate | watchdog rate |