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

CassInet

cass_inet_init_v4

( address )

Constructs an inet v4 object.

Parameters:
Name Type Details
in address

An address of size CASS_INET_V4_LENGTH

Returns:
Type Details
CassInet

An inet object.

CassInet

cass_inet_init_v6

( address )

Constructs an inet v6 object.

Parameters:
Name Type Details
in address

An address of size CASS_INET_V6_LENGTH

Returns:
Type Details
CassInet

An inet object.

void

cass_inet_string

( inet, output )

Returns a null-terminated string for the specified inet.

Parameters:
Name Type Details
in inet
out output

A null-terminated string of length CASS_INET_STRING_LENGTH.

CassError

cass_inet_from_string

( str, output )

Returns an inet for the specified string.

Examples: “127.0.0.1” or “::1”

Parameters:
Name Type Details
in str
out output
CassError

cass_inet_from_string_n

( str, str_length, output )

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

Parameters:
Name Type Details
in str
in str_length
out output
Returns:
Type Details
CassError

same as CassInet::cass_inet_from_string

See Also: