Add PeerFactory
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 23 Jan 2014 00:47:50 +0000 (01:47 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 23 Jan 2014 00:54:50 +0000 (01:54 +0100)
commit9c6f27c7bf7cb9dee234383ed9347c077aa2bce9
treec01584d69a9721267480e83296d3344744caeecb
parent3d464695bf5b57c969f30e6f3b8b429890f976bf
Add PeerFactory

This factory creates an instance of a RemotePeer subclass based on the
given protocol type and peer-specific features. If given a list, it will
select the preferred one (generally the first one that matches an available
peer which accepts the given peer-specific features).

For now, we just have the LegacyPeer (which does not have specific
features, so that value is ignored).
src/common/CMakeLists.txt
src/common/peerfactory.cpp [new file with mode: 0644]
src/common/peerfactory.h [new file with mode: 0644]