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.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public static Host[] ParseHosts( string str, string defaultTlsName, int defaultPort )
Parameters
- str
- Type: SystemString
- defaultTlsName
- Type: SystemString
- defaultPort
- Type: SystemInt32
Return Value
Type: HostSee Also