Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
tftpRecvPackets.c File Reference
#include <tftp.h>
#include <device.h>
#include <thread.h>

Functions

thread tftpRecvPackets (int udpdev, struct tftpPkt *pkt, tid_typ parent)
 

Function Documentation

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
udpdevUDP device to read from.
pktBuffer to use for reading.
parentThread to inform when a packet has been read.
Returns
This thread never returns.