Network Toolkit¶
Defines¶
Name | Value | Description |
---|---|---|
MIRA_NET_MAX_ADDRESS_STR_LEN |
40 |
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
Parameter | Description |
---|---|
dst |
Destination address. |
src |
Source address. |
Return
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
Parameter | Description |
---|---|
dst |
The correctly formatted address. |
src |
The address to be converted. |
Return
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
Parameter | Description |
---|---|
dst |
The destination address. |
src |
The address to be copied. |
Return
void
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
Parameter | Description |
---|---|
address_1 |
Pointer to the first address to compare. |
address_2 |
Pointer to the second address to compare. |
Return
Value | Description |
---|---|
MIRA_TRUE |
The addresses are equal. |
MIRA_FALSE |
The addresses differ. |