Handle the readyRead() signal in RemotePeer instead of LegacyPeer
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 23 Jan 2014 00:05:29 +0000 (01:05 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 23 Jan 2014 00:54:49 +0000 (01:54 +0100)
commit676141b18a54c4aa34d4831b9d054d8d63ba21b1
tree4a647ef266aefb56828633a31fca551a37bf5938
parent2f6d1f4ead3a11b1f9ca4676e659bd93042a67af
Handle the readyRead() signal in RemotePeer instead of LegacyPeer

That way, the RemotePeer subclasses don't all need to connect to the
signal themselves; also, we can make sure in a central place that
socket data is processed even the socket was handed over to the peer
with unhandled data still in its buffer.

Instead of handling the signal directly, RemotePeer subclasses need
to implement the onSocketDataAvailable() method.
src/common/protocols/legacy/legacypeer.cpp
src/common/protocols/legacy/legacypeer.h
src/common/remotepeer.cpp
src/common/remotepeer.h