#include <tftp.h>
#include <device.h>
#include <thread.h>
thread tftpRecvPackets |
( |
int |
udpdev, |
|
|
struct tftpPkt * |
pkt, |
|
|
tid_typ |
parent |
|
) |
| |
Thread procedure for a thread that repeatedly reads TFTP packets from a UDP device and provides them in a buffer to another thread. This is a workaround for the lack of timeout support in read(). Not intended to be used outside of the TFTP code.
- Parameters
-
udpdev | UDP device to read from. |
pkt | Buffer to use for reading. |
parent | Thread to inform when a packet has been read. |
- Returns
- This thread never returns.