On Tue, Feb 9, 2010 at 5:11 PM, Luca <[email protected]> wrote: > I could use loop if all messages have same size. But even if I'm in that > case, if I just use a loop and for any reason I miss a character (not > because of gPXE) then I would never exit the loop. > For instance if I'm in a loop waiting for 40 characters but I miss 1, then > gPXE will wait forever for the last one (without exiting the loop because I > cannot implement a timeout mechanism).
See include/gpxe/timer.h currticks() and ticks_per_sec(). You can do a timeout. Stefan _______________________________________________ gPXE mailing list [email protected] http://etherboot.org/mailman/listinfo/gpxe
