Skip to content

Toolkit

Defines

MIRA_NET_MAX_ADDRESS_STR_LEN

#define MIRA_NET_MAX_ADDRESS_STR_LEN

Functions

mira_net_toolkit_parse_address

mira_status_t mira_net_toolkit_parse_address(mira_net_address_t *dst, const char *src);

Parse an address and verify its authenticity.

Parameters

Name Description
dst Parsed address.
src Address in string format.

Return value

The status of the parse address request.

mira_net_toolkit_format_address

char * mira_net_toolkit_format_address(char *dst, const mira_net_address_t *src);

Format an address to the correct Mira address format.

Parameters

Name Description
dst The correctly formatted address.
src The address to be converted.

Return value

The formatted address.

mira_net_toolkit_copy_address

void mira_net_toolkit_copy_address(mira_net_address_t *dst, const mira_net_address_t *src);

Perform a simple copy of a mira_net_address.

Parameters

Name Description
dst The destination address.
src The address to be copied.

mira_net_toolkit_addresses_are_equal

mira_bool_t mira_net_toolkit_addresses_are_equal(const mira_net_address_t *address_1, const mira_net_address_t *address_2);

Compare two addresses for equality.

Parameters

Name Description
address_1 Pointer to the first address to compare.
address_2 Pointer to the second address to compare.

Return value

Name Description
MIRA_TRUE The addresses are equal.
MIRA_FALSE The addresses differ.
Back to top