The NetBurner UDP protocol API is implemented in two ways:
More...
The NetBurner UDP protocol API is implemented in two ways:
- As a C++ class, which makes memory management easier.
- Wrapper functions that implement a UDP sockets interface.
◆ RegisterUDPFifo()
void RegisterUDPFifo |
( |
uint16_t |
listenPort, |
|
|
OS_FIFO * |
pFifo |
|
) |
| |
◆ RegisterUDPFifoWithNotify()
void RegisterUDPFifoWithNotify |
( |
uint16_t |
listenPort, |
|
|
OS_FIFO * |
pFifo, |
|
|
udp_data_notify * |
pNotifyFunction |
|
) |
| |
Register a FIFO to receive incoming UDP packets and a callback function to receive a notification when a packet is received.
A OS_FIFO is used to receive incoming UDP Packets. This function registers an OS_FIFO to listen to a specific UDP port number and a notification callback function.
- Parameters
-
listenPort | Port to listen on for incoming packets |
pFifo | Pointer to the OS_FIFO to register |
pNotifyFunction | Pointer to callback function to receive notification |
- See also
- RegisterUDPFifo(), UnregisterUDPFifo()
◆ UnregisterUDPFifo()
void UnregisterUDPFifo |
( |
uint16_t |
listenPort, |
|
|
bool |
drain = false |
|
) |
| |