version 3.02
This commit is contained in:
parent
7adaaf99be
commit
bc32a3a706
25 changed files with 287 additions and 99 deletions
|
@ -4,7 +4,7 @@
|
|||
// Description: a filter to write into a target device //
|
||||
// Project: WANProxy XTech //
|
||||
// Author: Andreu Vidal Bramfeld-Software //
|
||||
// Last modified: 2015-04-01 //
|
||||
// Last modified: 2016-02-28 //
|
||||
// //
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -22,7 +22,7 @@ SinkFilter::~SinkFilter ()
|
|||
if (write_action_) write_action_->cancel ();
|
||||
}
|
||||
|
||||
bool SinkFilter::consume (Buffer& buf)
|
||||
bool SinkFilter::consume (Buffer& buf, int flg)
|
||||
{
|
||||
if (! sink_ || closing_)
|
||||
return false;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Description: a filter to write into a target device //
|
||||
// Project: WANProxy XTech //
|
||||
// Author: Andreu Vidal Bramfeld-Software //
|
||||
// Last modified: 2015-04-01 //
|
||||
// Last modified: 2016-02-28 //
|
||||
// //
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -24,7 +24,7 @@ public:
|
|||
SinkFilter (const LogHandle& log, Socket* sck, bool cln = 0);
|
||||
virtual ~SinkFilter ();
|
||||
|
||||
virtual bool consume (Buffer& buf);
|
||||
virtual bool consume (Buffer& buf, int flg = 0);
|
||||
void write_complete (Event e);
|
||||
virtual void flush (int flg);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue