From 3cea7a349ac55df93b3eac1bf40365e00e472480 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Fri, 25 Aug 2017 15:53:56 +0200 Subject: Network cleanup (#6310) * Move Connection threads to dedicated files + various cleanups * ConnectionReceiveThread::processPacket now uses function pointer table to route MT packet types * Various code style fixes * Code style with clang-format * Various SharedBuffer copy removal * SharedBuffer cannot be copied anymore using Buffer * Fix many SharedBuffer copy (thanks to delete operator) --- src/unittest/test_connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/unittest') diff --git a/src/unittest/test_connection.cpp b/src/unittest/test_connection.cpp index 5a2e32ca8..dcfc3b4e5 100644 --- a/src/unittest/test_connection.cpp +++ b/src/unittest/test_connection.cpp @@ -115,7 +115,7 @@ void TestConnection::testHelpers() infostream<<"data1[0]="<<((u32)data1[0]&0xff)< sentdata = pkt.oldForgePacket(); + SharedBuffer sentdata = pkt.oldForgePacket(); server.Send(peer_id_client, 0, &pkt, true); //sleep_ms(3000); - Buffer recvdata; + SharedBuffer recvdata; infostream << "** running client.Receive()" << std::endl; u16 peer_id = 132; u16 size = 0; -- cgit v1.2.3