nf_srv_udpPostReceive

Indicates UDP packet to source endpoint.
NF_STATUS nf_srv_udpPostReceive(
	ENDPOINT_ID id, 
	const unsigned char * remoteAddress, 
	const char * buf, 
	int len, 
	PNF_UDP_OPTIONS options)

Parameters

id
Socket identifier
remoteAddress
Source address (sockaddr_in* for IPv4 and sockaddr_in6* for IPv6)
buf
Pointer to data buffer
len
Buffer length
options
UDP options

Return Values

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

Remarks

The method NF_EventHandler::udpCanReceive is called when the internal packet buffer is empty.

Requirements

Header nfsrvapi.h
Library nfsrvapi.lib