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

( CassCustomPayload * payload, const char * name, size_t name_length, const cass_byte_t * value, size_t value_size )

Same as CassCustomPayload::cass_custom_payload_set, but with lengths for string parameters.

Requires Cassandra: 2.2+

Parameters:
Name Type Details
in payload CassCustomPayload *
in name const char *
in name_length size_t
in value const cass_byte_t *
in value_size size_t
CassInet

cass_inet_init_v4

( const cass_uint8_t * address )

Constructs an inet v4 object.

Parameters:
Name Type Details
in address const cass_uint8_t *

An address of size CASS_INET_V4_LENGTH

Returns:
Type Details
CassInet

An inet object.

CassInet

cass_inet_init_v6

( const cass_uint8_t * address )

Constructs an inet v6 object.

Parameters:
Name Type Details
in address const cass_uint8_t *

An address of size CASS_INET_V6_LENGTH

Returns:
Type Details
CassInet

An inet object.

void

cass_inet_string

( CassInet inet, char * output )

Returns a null-terminated string for the specified inet.

Parameters:
Name Type Details
in inet CassInet
out output char *

A null-terminated string of length CASS_INET_STRING_LENGTH.

CassError

cass_inet_from_string

( const char * str, CassInet * output )

Returns an inet for the specified string.

Examples: “127.0.0.1” or “::1”

Parameters:
Name Type Details
in str const char *
out output CassInet *
CassError

cass_inet_from_string_n

( const char * str, size_t str_length, CassInet * output )

Same as CassInet::cass_inet_from_string, but with lengths for string parameters.

Parameters:
Name Type Details
in str const char *
in str_length size_t
out output CassInet *
Returns:
Type Details
CassError

same as CassInet::cass_inet_from_string

See Also: