Abstract out tcp socket from tcp connection.

This commit is contained in:
John Preston
2019-07-05 09:54:53 +02:00
parent ffba901620
commit 3cda267787
13 changed files with 306 additions and 100 deletions
@@ -161,6 +161,7 @@ ConnectionPointer AbstractConnection::Create(
not_null<Instance*> instance,
DcOptions::Variants::Protocol protocol,
QThread *thread,
const bytes::vector &secret,
const ProxyData &proxy) {
auto result = [&] {
if (protocol == DcOptions::Variants::Tcp) {