#include <nitroWiFi/cps.h>
void CPS_SetUdpCallback(int (*callback)(u8 *, u32, CPSSoc *));
callback |
Callback function |
None.
Sets the callback function to call when UDP packets are received. The callback function is called only if the thread is waiting for UDP reception and is not blocking. In the callback function, the first parameter is the pointer to the packet data, the second parameter is the packet data length, and the third parameter is a pointer toCPSSoc
. If the callback function returns 0, data is stored in the buffer; if the return value is non-zero, no data is stored in the buffer. This does not block.
10/21/2005 Initial version.