struct CassInet
IP address for either IPv4 or IPv6.
Attributes
cass_uint8_t
address
[16]Big-endian, binary representation of a IPv4 or IPv6 address
cass_uint8_t
address_length
Number of address bytes. 4 bytes for IPv4 and 16 bytes for IPv6.
Functions
void
cass_custom_payload_set_n
( payload, name, name_length, value, value_size )Same as CassCustomPayload::cass_custom_payload_set
, but with lengths for string parameters.
CassInet
cass_inet_init_v4
( address )Constructs an inet v4 object.
CassInet
cass_inet_init_v6
( address )Constructs an inet v6 object.
void
cass_inet_string
( inet, output )Returns a null-terminated string for the specified inet.
CassError
cass_inet_from_string
( str, output )Returns an inet for the specified string.
Examples: “127.0.0.1” or “::1”
CassError
cass_inet_from_string_n
( str, str_length, output )Same as CassInet::cass_inet_from_string
, but with lengths for string parameters.