Ixian SDK
DLT.Network.CoreNetworkUtils Class Reference

Static Public Member Functions

static List< string[]> getSeedNodes (bool isTestNet)
 Helper function which returns a list of seed addresses based on the testnet parameter. More...
 
static string GetLocalIPAddress ()
 Returns the first unicast, IPv4 network address on the local machine. More...
 
static List< string > GetAllLocalIPAddresses ()
 Retrieves all IPv4, unicast addresses on the local computer. More...
 
static IPAddress GetPrimaryIPAddress ()
 Returns the first IPv4, unicast address on the local computer which has a gateway configured and is, therefore, probably Internet-connectable. More...
 
static List< IPAndMaskGetAllLocalIPAddressesAndMasks ()
 Retrieves all locally configured IPv4 addresses and their subnet masks for the local computer. More...
 
static bool PingAddressReachable (String full_hostname)
 Attempts to connect to the given host name or IP address and transmit some data. Note: This function has a possible delay of about 2 seconds. More...
 

Static Public Attributes

static List< string[]> seedNodes
 List of Ixian MainNet seed nodes and their addresses. More...
 
static List< string[]> seedTestNetNodes
 List of Ixian TestNet seed nodes and their addresses. More...
 

Detailed Description

Definition at line 357 of file Network.cs.

Member Function Documentation

◆ GetAllLocalIPAddresses()

static List<string> DLT.Network.CoreNetworkUtils.GetAllLocalIPAddresses ( )
static

Retrieves all IPv4, unicast addresses on the local computer.

Returns
List of all IP addresses of the local computer as strings.

Definition at line 424 of file Network.cs.

◆ GetAllLocalIPAddressesAndMasks()

static List<IPAndMask> DLT.Network.CoreNetworkUtils.GetAllLocalIPAddressesAndMasks ( )
static

Retrieves all locally configured IPv4 addresses and their subnet masks for the local computer.

Returns
List of IP addresses and subnet masks.

Definition at line 492 of file Network.cs.

◆ GetLocalIPAddress()

static string DLT.Network.CoreNetworkUtils.GetLocalIPAddress ( )
static

Returns the first unicast, IPv4 network address on the local machine.

Returns
IPv4 address as string.

Definition at line 399 of file Network.cs.

◆ GetPrimaryIPAddress()

static IPAddress DLT.Network.CoreNetworkUtils.GetPrimaryIPAddress ( )
static

Returns the first IPv4, unicast address on the local computer which has a gateway configured and is, therefore, probably Internet-connectable.

Returns
IP address object

Definition at line 451 of file Network.cs.

◆ getSeedNodes()

static List<string[]> DLT.Network.CoreNetworkUtils.getSeedNodes ( bool  isTestNet)
static

Helper function which returns a list of seed addresses based on the testnet parameter.

Parameters
isTestNetIndicator whether TestNet seed nodes should be returned (true), or MainNet (false).
Returns
List of connectable seed addresses.

Definition at line 386 of file Network.cs.

◆ PingAddressReachable()

static bool DLT.Network.CoreNetworkUtils.PingAddressReachable ( String  full_hostname)
static

Attempts to connect to the given host name or IP address and transmit some data. Note: This function has a possible delay of about 2 seconds.

Parameters
full_hostnameHostname or IP address of the remote endpoint.
Returns
True, if the IP address is reachable.

Definition at line 520 of file Network.cs.

Member Data Documentation

◆ seedNodes

List<string[]> DLT.Network.CoreNetworkUtils.seedNodes
static
Initial value:
= new List<string[]>
{
new string[2] { "seed1.ixian.io:10234", "1AAF8ZagTw6UqiQPUoiKjmoAN45jvR8tdmSmeev4uNzq45QWB" },
new string[2] { "seed2.ixian.io:10234", "1NpizdRi5rmw586Aw883CoQ7THUT528CU5JGhGomgaG9hC3EF" },
new string[2] { "seed3.ixian.io:10234", "1Dp9bEFkymhN8PcN7QBzKCg2buz4njjp4eJeFngh769H4vUWi" },
new string[2] { "seed4.ixian.io:10234", "1SWy7jYky8xkuN5dnr3aVMJiNiQVh4GSLggZ9hBD3q7ALVEYY" },
new string[2] { "seed5.ixian.io:10234", "1R2WxZ7rmQhMTt5mCFTPhPe9Ltw8pTPY6uTsWHCvVd3GvWupC" }
}

List of Ixian MainNet seed nodes and their addresses.

Definition at line 362 of file Network.cs.

◆ seedTestNetNodes

List<string[]> DLT.Network.CoreNetworkUtils.seedTestNetNodes
static
Initial value:
= new List<string[]>
{
new string[2] { "seedtest1.ixian.io:11234", null },
new string[2] { "seedtest2.ixian.io:11234", null },
new string[2] { "seedtest3.ixian.io:11234", null }
}

List of Ixian TestNet seed nodes and their addresses.

Definition at line 374 of file Network.cs.


The documentation for this class was generated from the following file: