Menu

CassInet

struct CassInet

IP address for either IPv4 or IPv6.

Public Functions

CassInet cass_inet_init_v4(const cass_uint8_t *address)

Constructs an inet v4 object.

Return

An inet object.

Parameters
  • address: An address of size CASS_INET_V4_LENGTH

CassInet cass_inet_init_v6(const cass_uint8_t *address)

Constructs an inet v6 object.

Return

An inet object.

Parameters
  • address: An address of size CASS_INET_V6_LENGTH

void cass_inet_string(CassInet inet, char *output)

Returns a null-terminated string for the specified inet.

Parameters
  • inet:

  • output: 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
  • str:

  • output:

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

Same as cass_inet_from_string(), but with lengths for string parameters.

Return

same as cass_inet_from_string()

See

cass_inet_from_string()

Parameters
  • str:

  • str_length:

  • output: