nf_srv_getUDPRemoteAddress

Returns destination address for UDP socket with given endpoint id.
NF_STATUS nf_srv_getUDPRemoteAddress(ENDPOINT_ID id, unsigned char * remoteAddress, int remoteAddressLen)

Parameters

id
Endpoint id
remoteAddress
Pointer to destination address in sockaddr_in or sockaddr_in6 structure
remoteAddressLen
Size of remoteAddress buffer

Return Values

NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.

Remarks

It is possible to call this function to get the destination address for UDP datagrams in udpCreated event.

Requirements

Header nfsrvapi.h
Library nfsrvapi.lib