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 ValueCondition
EINVALcoreNetAddrSPEC_t pointer is null
EINVALinvalid address family
EINVALinvalid address

MULTI-THREAD SAFETY LEVEL

MT-safe.


SEE ALSO

Functions:
coreNetServerPortAdd() coreNetServerPortRemove() coreNetChanAccept() coreNetChanConnect() coreNetChanOpen() coreNetChanPayloadMsg() coreNetChanTxFlow() coreNetChanRxFlow() coreNetAddrInit()