Skip to content

Network 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.

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.

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.