nf_srv_udpPostSend

Sends UDP packet to destination endpoint.
NF_STATUS nf_srv_udpPostSend(
	ENDPOINT_ID id, 
	const unsigned char * remoteAddress, 
	const char * buf, 
	int len, 
	PNF_UDP_OPTIONS options)

Parameters

id
Socket identifier
remoteAddress
Destination 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::udpCanSend is called when the internal packet buffer is empty.

Requirements

Header nfsrvapi.h
Library nfsrvapi.lib