From c7160cb629086df2a32c7dcf4faed4761ec4393e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Thu, 24 Aug 2017 08:28:54 +0200 Subject: Network cleanup (#6302) * Cleanup network headers * Move peerhandler to a specific header to reduce compilation times * Move socket.cpp/h to network folder * More work * Network code cleanups * Move socket.{cpp,h} to network folder * Move Address object to network/address.{cpp,h} * Move network exceptions to network/networkexceptions.h * Client: use unique_ptr for Connection * Server/ClientIface: use shared_ptr for Connection * Format fixes * Remove socket.cpp socket.h from clang-format whitelist * Also fix NetworkPacket code style & make it under clang-format --- src/unittest/test_connection.cpp | 2 +- src/unittest/test_socket.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unittest') diff --git a/src/unittest/test_connection.cpp b/src/unittest/test_connection.cpp index c23d2a068..5a2e32ca8 100644 --- a/src/unittest/test_connection.cpp +++ b/src/unittest/test_connection.cpp @@ -20,11 +20,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "test.h" #include "log.h" -#include "socket.h" #include "settings.h" #include "util/serialize.h" #include "network/connection.h" #include "network/networkpacket.h" +#include "network/socket.h" class TestConnection : public TestBase { public: diff --git a/src/unittest/test_socket.cpp b/src/unittest/test_socket.cpp index 33e568e79..6d5cf334d 100644 --- a/src/unittest/test_socket.cpp +++ b/src/unittest/test_socket.cpp @@ -20,8 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "test.h" #include "log.h" -#include "socket.h" #include "settings.h" +#include "network/socket.h" class TestSocket : public TestBase { public: -- cgit v1.2.3