| << Prev | appCORE Programming Guide | Next >> |
NAME
coreNetAddrInit() -- initialize a network channel address.
SYNOPSIS
include "appcore.h"
int coreNetAddrInit(
coreNetAddrSPEC_t* p,
coreNetAddrFamily_t f,
const char* s
unsigned short p )
DESCRIPTION
The coreNetAddrInit() function validates and initializes a network channel address. The address family is validated. IPV4 and IPV6 addresses are supported.
PARAMETERS
p pointer to the address data type to initialize. f network address family - coreNetAddrFamilyIPV4 and coreNetAddrFamilyIPV6 s network address in string format p port number
Sample Code
RETURN VALUE
| errno Value | Condition |
| EINVAL | coreNetAddrSPEC_t pointer is null |
| EINVAL | invalid address family |
| EINVAL | invalid address |
MULTI-THREAD SAFETY LEVEL
MT-safe.
SEE ALSO
| << Prev | appCORE Programming Guide | Next >> |