Get rid of loopbreak as a mean for signalling successful packet handling.
authorLinus Nordberg <linus@nordberg.se>
Fri, 25 Feb 2011 11:48:26 +0000 (12:48 +0100)
committerLinus Nordberg <linus@nordberg.se>
Fri, 25 Feb 2011 11:48:26 +0000 (12:48 +0100)
commit53d44d49597a515ae6c22ec20138a21986f6c3ab
tree0fc06bac6be003d2b936679075fdbf6eb735d1d7
parent0befcd00af0a034bc4ec4e3466d2b37b3c658cc9
Get rid of loopbreak as a mean for signalling successful packet handling.

In blocking mode, breaking the event loop with loopbreak will probably
be needed for exceptions like timeout so we shouldn't use it for
breaking the loop and signalling success.

In the user callbaks used in blocking mode (_rcb and _wcb), disable
read and write events on the event buffer.  This will stop the loop.
Also, set a flag in the packet struct to signal success.

In the "low level callbacks" (_read_cb and _write_cb), enable read or
write, accordingly.
lib/include/radsec/radsec-impl.h
lib/packet.c