write entire input FIFO

remove length argument from _fifoOut.write(), defaulting to the
entire _fifoIn content write attempt (including any previous call "leftovers")
This commit is contained in:
Aleksandar Fabijanic
2012-12-11 10:59:51 -06:00
parent 245f3e7568
commit 1b173da717

View File

@@ -133,7 +133,7 @@ public:
{
// receive bytes and transfer(echo) them to the output FIFO buffer
int len = _socket.receiveBytes(_fifoIn);
_fifoIn.drain(_fifoOut.write(_fifoIn.buffer(), len));
_fifoIn.drain(_fifoOut.write(_fifoIn.buffer()));
}
void onSocketWritable(const AutoPtr<WritableNotification>& pNf)