A set of various fixes and smaller API tweaks, plus tests.

Also moving PCAP-related bifs to iosource/pcap.bif.
This commit is contained in:
Robin Sommer 2014-08-22 17:56:16 -07:00
parent ce9f16490c
commit 5f817513d0
34 changed files with 395 additions and 164 deletions

View file

@ -14,7 +14,7 @@ namespace iosource {
*/
class IOSource {
public:
IOSource() { idle = closed = false; }
IOSource() { idle = false; closed = false; }
virtual ~IOSource() {}
// Returns true if source has nothing ready to process.
@ -57,7 +57,6 @@ protected:
// Derived classed are to set this to true if they have gone dry
// temporarily.
void SetIdle(bool is_idle) { idle = is_idle; }
// Derived classed are to set this to true if they have gone dry
// temporarily.