Host.ParseHosts Method

Parse hosts from string format: hostname1[:tlsname1][:port1],...

Hostname may also be an IP address in the following formats.

  • IPv4: xxx.xxx.xxx.xxx
  • IPv6: [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
  • IPv6: [xxxx::xxxx]

IPv6 addresses must be enclosed by brackets. tlsname and port are optional.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
public static Host[] ParseHosts(
	string str,
	string defaultTlsName,
	int defaultPort
)

Parameters

str  String
 
defaultTlsName  String
 
defaultPort  Int32
 

Return Value

Host[]

See Also