Thanks. I'll try with that.<br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 11:28 AM, Stefan Hajnoczi <span dir="ltr"><<a href="mailto:stefanha@gmail.com">stefanha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Feb 9, 2010 at 5:11 PM, Luca <<a href="mailto:lucarx76@gmail.com">lucarx76@gmail.com</a>> wrote:<br>
> I could use loop if all messages have same size. But even if I'm in that<br>
> case, if I just use a loop and for any reason I miss a character (not<br>
> because of gPXE) then I would never exit the loop.<br>
> For instance if I'm in a loop waiting for 40 characters but I miss 1, then<br>
> gPXE will wait forever for the last one (without exiting the loop because I<br>
> cannot implement a timeout mechanism).<br>
<br>
</div>See include/gpxe/timer.h currticks() and ticks_per_sec(). You can do a timeout.<br>
<font color="#888888"><br>
Stefan<br>
</font></blockquote></div><br>