diff --git a/Makefile.am b/Makefile.am
index 08e63babc..40c9f62bf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,7 +45,6 @@ src_libbitcoin_network_la_SOURCES = \
src/channels/channel.cpp \
src/channels/channel_http.cpp \
src/channels/channel_peer.cpp \
- src/channels/channel_tcp.cpp \
src/channels/channel_ws.cpp \
src/config/address.cpp \
src/config/authority.cpp \
@@ -127,7 +126,7 @@ src_libbitcoin_network_la_SOURCES = \
src/sessions/session_outbound.cpp \
src/sessions/session_peer.cpp \
src/sessions/session_seed.cpp \
- src/sessions/session_tcp.cpp
+ src/sessions/session_server.cpp
# local: test/libbitcoin-network-test
#------------------------------------------------------------------------------
@@ -161,7 +160,6 @@ test_libbitcoin_network_test_SOURCES = \
test/channels/channel.cpp \
test/channels/channel_http.cpp \
test/channels/channel_peer.cpp \
- test/channels/channel_tcp.cpp \
test/channels/channel_ws.cpp \
test/config/address.cpp \
test/config/authority.cpp \
@@ -239,7 +237,6 @@ test_libbitcoin_network_test_SOURCES = \
test/protocols/protocol_ping_60001.cpp \
test/protocols/protocol_reject_70002.cpp \
test/protocols/protocol_seed_209.cpp \
- test/protocols/protocol_tcp.cpp \
test/protocols/protocol_version_106.cpp \
test/protocols/protocol_version_70001.cpp \
test/protocols/protocol_version_70002.cpp \
@@ -255,7 +252,7 @@ test_libbitcoin_network_test_SOURCES = \
test/sessions/session_manual.cpp \
test/sessions/session_outbound.cpp \
test/sessions/session_seed.cpp \
- test/sessions/session_tcp.cpp
+ test/sessions/session_server.cpp
endif WITH_TESTS
@@ -303,7 +300,6 @@ include_bitcoin_network_channels_HEADERS = \
include/bitcoin/network/channels/channel.hpp \
include/bitcoin/network/channels/channel_http.hpp \
include/bitcoin/network/channels/channel_peer.hpp \
- include/bitcoin/network/channels/channel_tcp.hpp \
include/bitcoin/network/channels/channel_ws.hpp \
include/bitcoin/network/channels/channels.hpp
@@ -458,7 +454,6 @@ include_bitcoin_network_protocols_HEADERS = \
include/bitcoin/network/protocols/protocol_ping_60001.hpp \
include/bitcoin/network/protocols/protocol_reject_70002.hpp \
include/bitcoin/network/protocols/protocol_seed_209.hpp \
- include/bitcoin/network/protocols/protocol_tcp.hpp \
include/bitcoin/network/protocols/protocol_version_106.hpp \
include/bitcoin/network/protocols/protocol_version_70001.hpp \
include/bitcoin/network/protocols/protocol_version_70002.hpp \
@@ -502,6 +497,6 @@ include_bitcoin_network_sessions_HEADERS = \
include/bitcoin/network/sessions/session_outbound.hpp \
include/bitcoin/network/sessions/session_peer.hpp \
include/bitcoin/network/sessions/session_seed.hpp \
- include/bitcoin/network/sessions/session_tcp.hpp \
+ include/bitcoin/network/sessions/session_server.hpp \
include/bitcoin/network/sessions/sessions.hpp
diff --git a/builds/cmake/CMakeLists.txt b/builds/cmake/CMakeLists.txt
index e93b4fb57..e58231312 100644
--- a/builds/cmake/CMakeLists.txt
+++ b/builds/cmake/CMakeLists.txt
@@ -227,7 +227,6 @@ add_library( ${CANONICAL_LIB_NAME}
"../../src/channels/channel.cpp"
"../../src/channels/channel_http.cpp"
"../../src/channels/channel_peer.cpp"
- "../../src/channels/channel_tcp.cpp"
"../../src/channels/channel_ws.cpp"
"../../src/config/address.cpp"
"../../src/config/authority.cpp"
@@ -309,7 +308,7 @@ add_library( ${CANONICAL_LIB_NAME}
"../../src/sessions/session_outbound.cpp"
"../../src/sessions/session_peer.cpp"
"../../src/sessions/session_seed.cpp"
- "../../src/sessions/session_tcp.cpp" )
+ "../../src/sessions/session_server.cpp" )
# ${CANONICAL_LIB_NAME} project specific include directory normalization for build.
#------------------------------------------------------------------------------
@@ -367,7 +366,6 @@ if (with-tests)
"../../test/channels/channel.cpp"
"../../test/channels/channel_http.cpp"
"../../test/channels/channel_peer.cpp"
- "../../test/channels/channel_tcp.cpp"
"../../test/channels/channel_ws.cpp"
"../../test/config/address.cpp"
"../../test/config/authority.cpp"
@@ -445,7 +443,6 @@ if (with-tests)
"../../test/protocols/protocol_ping_60001.cpp"
"../../test/protocols/protocol_reject_70002.cpp"
"../../test/protocols/protocol_seed_209.cpp"
- "../../test/protocols/protocol_tcp.cpp"
"../../test/protocols/protocol_version_106.cpp"
"../../test/protocols/protocol_version_70001.cpp"
"../../test/protocols/protocol_version_70002.cpp"
@@ -461,7 +458,7 @@ if (with-tests)
"../../test/sessions/session_manual.cpp"
"../../test/sessions/session_outbound.cpp"
"../../test/sessions/session_seed.cpp"
- "../../test/sessions/session_tcp.cpp" )
+ "../../test/sessions/session_server.cpp" )
add_test( NAME libbitcoin-network-test COMMAND libbitcoin-network-test
--run_test=*
diff --git a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj
index 15f72d401..99e0b9d56 100644
--- a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj
+++ b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj
@@ -133,7 +133,6 @@
-
$(IntDir)test_config_address.obj
@@ -233,7 +232,6 @@
-
@@ -251,7 +249,7 @@
-
+
diff --git a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters
index ed8e05478..9c84fea4a 100644
--- a/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters
+++ b/builds/msvc/vs2022/libbitcoin-network-test/libbitcoin-network-test.vcxproj.filters
@@ -108,9 +108,6 @@
src\channels
-
- src\channels
-
src\channels
@@ -354,9 +351,6 @@
src\protocols
-
- src\protocols
-
src\protocols
@@ -402,7 +396,7 @@
src\sessions
-
+
src\sessions
diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj
index fb0037538..fe39132d0 100644
--- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj
+++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj
@@ -127,7 +127,6 @@
-
$(IntDir)src_config_address.obj
@@ -220,7 +219,7 @@
-
+
@@ -246,7 +245,6 @@
-
@@ -344,7 +342,6 @@
-
@@ -376,7 +373,7 @@
-
+
diff --git a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters
index 9fda828f2..dad7a070d 100644
--- a/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters
+++ b/builds/msvc/vs2022/libbitcoin-network/libbitcoin-network.vcxproj.filters
@@ -165,9 +165,6 @@
src\channels
-
- src\channels
-
src\channels
@@ -420,7 +417,7 @@
src\sessions
-
+
src\sessions
@@ -494,9 +491,6 @@
include\bitcoin\network\channels
-
- include\bitcoin\network\channels
-
include\bitcoin\network\channels
@@ -788,9 +782,6 @@
include\bitcoin\network\protocols
-
- include\bitcoin\network\protocols
-
include\bitcoin\network\protocols
@@ -884,7 +875,7 @@
include\bitcoin\network\sessions
-
+
include\bitcoin\network\sessions
diff --git a/include/bitcoin/network.hpp b/include/bitcoin/network.hpp
index 9aa817402..28bf1013a 100644
--- a/include/bitcoin/network.hpp
+++ b/include/bitcoin/network.hpp
@@ -42,7 +42,6 @@
#include
#include
#include
-#include
#include
#include
#include
@@ -136,7 +135,6 @@
#include
#include
#include
-#include
#include
#include
#include
@@ -168,7 +166,7 @@
#include
#include
#include
-#include
+#include
#include
#endif
diff --git a/include/bitcoin/network/channels/channel_peer.hpp b/include/bitcoin/network/channels/channel_peer.hpp
index 573a4af8c..21c86921a 100644
--- a/include/bitcoin/network/channels/channel_peer.hpp
+++ b/include/bitcoin/network/channels/channel_peer.hpp
@@ -38,7 +38,7 @@ class BCT_API channel_peer
{
public:
typedef std::shared_ptr ptr;
- ////using options_t = settings_t::tcp_server;
+ using options_t = settings_t::tcp_server;
using interface = rpc::interface::peer::dispatch;
using dispatcher = rpc::dispatcher;
diff --git a/include/bitcoin/network/channels/channel_tcp.hpp b/include/bitcoin/network/channels/channel_tcp.hpp
deleted file mode 100644
index edfa05d17..000000000
--- a/include/bitcoin/network/channels/channel_tcp.hpp
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS)
- *
- * This file is part of libbitcoin.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-#ifndef LIBBITCOIN_NETWORK_CHANNELS_CHANNEL_TCP_HPP
-#define LIBBITCOIN_NETWORK_CHANNELS_CHANNEL_TCP_HPP
-
-#include
-#include
-#include
-#include
-#include
-
-namespace libbitcoin {
-namespace network {
-
-/// General purpose tcp channel.
-class BCT_API channel_tcp
- : public channel, protected tracker
-{
-public:
- typedef std::shared_ptr ptr;
- ////using options_t = settings_t::tcp_server;
-
- inline channel_tcp(const logger& log, const socket::ptr& socket,
- uint64_t identifier, const settings_t& settings,
- const options_t& options) NOEXCEPT
- : channel(log, socket, identifier, settings, options),
- tracker(log)
- {
- }
-};
-
-} // namespace network
-} // namespace libbitcoin
-
-#endif
diff --git a/include/bitcoin/network/channels/channels.hpp b/include/bitcoin/network/channels/channels.hpp
index 5d6e49531..691b50a0b 100644
--- a/include/bitcoin/network/channels/channels.hpp
+++ b/include/bitcoin/network/channels/channels.hpp
@@ -22,7 +22,6 @@
#include
#include
#include
-#include
#include
#endif
diff --git a/include/bitcoin/network/protocols/protocol.hpp b/include/bitcoin/network/protocols/protocol.hpp
index 8432eee2a..cc2e45927 100644
--- a/include/bitcoin/network/protocols/protocol.hpp
+++ b/include/bitcoin/network/protocols/protocol.hpp
@@ -45,6 +45,8 @@ class BCT_API protocol
{
public:
typedef std::shared_ptr ptr;
+ using channel_t = channel;
+ using options_t = channel_t::options_t;
DELETE_COPY_MOVE(protocol);
diff --git a/include/bitcoin/network/protocols/protocol_http.hpp b/include/bitcoin/network/protocols/protocol_http.hpp
index f78904869..07029d76d 100644
--- a/include/bitcoin/network/protocols/protocol_http.hpp
+++ b/include/bitcoin/network/protocols/protocol_http.hpp
@@ -114,7 +114,7 @@ class BCT_API protocol_http
const channel_http::ptr channel_;
// These are thread safe.
- const session_tcp::ptr session_;
+ const session_server::ptr session_;
const uint16_t default_port_;
const options_t& options_;
};
diff --git a/include/bitcoin/network/protocols/protocol_tcp.hpp b/include/bitcoin/network/protocols/protocol_tcp.hpp
deleted file mode 100644
index 717205692..000000000
--- a/include/bitcoin/network/protocols/protocol_tcp.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS)
- *
- * This file is part of libbitcoin.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-#ifndef LIBBITCOIN_NETWORK_PROTOCOL_TCP_HPP
-#define LIBBITCOIN_NETWORK_PROTOCOL_TCP_HPP
-
-#include
-#include
-#include
-#include
-#include
-
-namespace libbitcoin {
-namespace network {
-
-class BCT_API protocol_tcp
- : public protocol
-{
-public:
- typedef std::shared_ptr ptr;
- using channel_t = channel_tcp;
- using options_t = channel_t::options_t;
-
-protected:
- protocol_tcp(const session::ptr& session, const channel::ptr& channel,
- const options_t&) NOEXCEPT
- : protocol(session, channel)
- {
- }
-};
-
-} // namespace network
-} // namespace libbitcoin
-
-#endif
diff --git a/include/bitcoin/network/protocols/protocols.hpp b/include/bitcoin/network/protocols/protocols.hpp
index 67d940f77..4673b45e8 100644
--- a/include/bitcoin/network/protocols/protocols.hpp
+++ b/include/bitcoin/network/protocols/protocols.hpp
@@ -29,7 +29,6 @@
#include
#include
#include
-#include
#include
#include
#include
diff --git a/include/bitcoin/network/sessions/session_tcp.hpp b/include/bitcoin/network/sessions/session_server.hpp
similarity index 94%
rename from include/bitcoin/network/sessions/session_tcp.hpp
rename to include/bitcoin/network/sessions/session_server.hpp
index 3b46d429d..be53c69b9 100644
--- a/include/bitcoin/network/sessions/session_tcp.hpp
+++ b/include/bitcoin/network/sessions/session_server.hpp
@@ -16,8 +16,8 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
-#ifndef LIBBITCOIN_NETWORK_SESSION_TCP_HPP
-#define LIBBITCOIN_NETWORK_SESSION_TCP_HPP
+#ifndef LIBBITCOIN_NETWORK_SESSION_SERVER_HPP
+#define LIBBITCOIN_NETWORK_SESSION_SERVER_HPP
#include
#include
@@ -37,11 +37,11 @@ class net;
/// could be replaced by this one. However that also derives from session_peer
/// which we don't want in downstream client-server sessions. So for now they
/// are just very redundant.
-class BCT_API session_tcp
+class BCT_API session_server
: public session
{
public:
- typedef std::shared_ptr ptr;
+ typedef std::shared_ptr ptr;
using options_t = network::settings::tcp_server;
/// Start accepting connections as configured (call from network strand).
@@ -49,7 +49,7 @@ class BCT_API session_tcp
protected:
/// Construct an instance (network should be started).
- session_tcp(net& network, uint64_t identifier,
+ session_server(net& network, uint64_t identifier,
const options_t& options) NOEXCEPT;
/// Accept cycle.
diff --git a/include/bitcoin/network/sessions/sessions.hpp b/include/bitcoin/network/sessions/sessions.hpp
index 94ed01101..fa313c5c2 100644
--- a/include/bitcoin/network/sessions/sessions.hpp
+++ b/include/bitcoin/network/sessions/sessions.hpp
@@ -25,6 +25,6 @@
#include
#include
#include
-#include
+#include
#endif
diff --git a/src/channels/channel_tcp.cpp b/src/channels/channel_tcp.cpp
deleted file mode 100644
index 2979bacb8..000000000
--- a/src/channels/channel_tcp.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS)
- *
- * This file is part of libbitcoin.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-#include
-
-namespace libbitcoin {
-namespace network {
-
-} // namespace network
-} // namespace libbitcoin
diff --git a/src/protocols/protocol_http.cpp b/src/protocols/protocol_http.cpp
index e70f8e9ff..e4b849415 100644
--- a/src/protocols/protocol_http.cpp
+++ b/src/protocols/protocol_http.cpp
@@ -48,7 +48,7 @@ protocol_http::protocol_http(const session::ptr& session,
const channel::ptr& channel, const options_t& options) NOEXCEPT
: protocol(session, channel),
channel_(std::dynamic_pointer_cast(channel)),
- session_(std::dynamic_pointer_cast(session)),
+ session_(std::dynamic_pointer_cast(session)),
default_port_(options.secure ? default_tls : default_http),
options_(options)
{
diff --git a/src/sessions/session_tcp.cpp b/src/sessions/session_server.cpp
similarity index 89%
rename from src/sessions/session_tcp.cpp
rename to src/sessions/session_server.cpp
index 984e222e0..381c6589d 100644
--- a/src/sessions/session_tcp.cpp
+++ b/src/sessions/session_server.cpp
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
-#include
+#include
#include
#include
@@ -27,7 +27,7 @@
namespace libbitcoin {
namespace network {
-#define CLASS session_tcp
+#define CLASS session_server
using namespace system;
using namespace std::placeholders;
@@ -38,7 +38,7 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
BC_PUSH_WARNING(SMART_PTR_NOT_NEEDED)
BC_PUSH_WARNING(NO_VALUE_OR_CONST_REF_SHARED_PTR)
-session_tcp::session_tcp(net& network, uint64_t identifier,
+session_server::session_server(net& network, uint64_t identifier,
const options_t& options) NOEXCEPT
: session(network, identifier),
////network_(network),
@@ -50,7 +50,7 @@ session_tcp::session_tcp(net& network, uint64_t identifier,
// Start/stop sequence.
// ----------------------------------------------------------------------------
-void session_tcp::start(result_handler&& handler) NOEXCEPT
+void session_server::start(result_handler&& handler) NOEXCEPT
{
BC_ASSERT(stranded());
@@ -65,7 +65,7 @@ void session_tcp::start(result_handler&& handler) NOEXCEPT
session::start(BIND(handle_started, _1, std::move(handler)));
}
-void session_tcp::handle_started(const code& ec,
+void session_server::handle_started(const code& ec,
const result_handler& handler) NOEXCEPT
{
BC_ASSERT(stranded());
@@ -112,7 +112,7 @@ void session_tcp::handle_started(const code& ec,
// ----------------------------------------------------------------------------
// Attempt to accept peers on each configured endpoint.
-void session_tcp::start_accept(const code&,
+void session_server::start_accept(const code&,
const acceptor::ptr& acceptor) NOEXCEPT
{
BC_ASSERT(stranded());
@@ -124,7 +124,7 @@ void session_tcp::start_accept(const code&,
acceptor->accept(BIND(handle_accepted, _1, _2, acceptor));
}
-void session_tcp::handle_accepted(const code& ec,
+void session_server::handle_accepted(const code& ec,
const socket::ptr& socket, const acceptor::ptr& acceptor) NOEXCEPT
{
BC_ASSERT(stranded());
@@ -200,17 +200,17 @@ void session_tcp::handle_accepted(const code& ec,
BIND(handle_channel_stop, _1, channel));
}
-bool session_tcp::blacklisted(const config::address& address) const NOEXCEPT
+bool session_server::blacklisted(const config::address& address) const NOEXCEPT
{
return settings().blacklisted(address);
}
-bool session_tcp::whitelisted(const config::address& address) const NOEXCEPT
+bool session_server::whitelisted(const config::address& address) const NOEXCEPT
{
return settings().whitelisted(address);
}
-bool session_tcp::enabled() const NOEXCEPT
+bool session_server::enabled() const NOEXCEPT
{
return true;
}
@@ -219,14 +219,14 @@ bool session_tcp::enabled() const NOEXCEPT
// ----------------------------------------------------------------------------
// Some client types do not utilize a handshake, so default is bypassed.
-void session_tcp::attach_handshake(const channel::ptr&,
+void session_server::attach_handshake(const channel::ptr&,
result_handler&&) NOEXCEPT
{
BC_ASSERT(false);
}
// Handshake bypassed, channel remains paused until after protocol attach.
-void session_tcp::do_attach_handshake(
+void session_server::do_attach_handshake(
const channel::ptr& BC_DEBUG_ONLY(channel),
const result_handler& handshake) NOEXCEPT
{
@@ -238,7 +238,7 @@ void session_tcp::do_attach_handshake(
// Completion sequence.
// ----------------------------------------------------------------------------
-void session_tcp::handle_channel_start(const code& LOG_ONLY(ec),
+void session_server::handle_channel_start(const code& LOG_ONLY(ec),
const channel::ptr& LOG_ONLY(channel)) NOEXCEPT
{
BC_ASSERT(stranded());
@@ -249,7 +249,7 @@ void session_tcp::handle_channel_start(const code& LOG_ONLY(ec),
channel_count_ = ceilinged_add(channel_count_, one);
}
-void session_tcp::handle_channel_stop(const code& LOG_ONLY(ec),
+void session_server::handle_channel_stop(const code& LOG_ONLY(ec),
const channel::ptr& LOG_ONLY(channel)) NOEXCEPT
{
BC_ASSERT(stranded());
diff --git a/test/channels/channel_tcp.cpp b/test/channels/channel_tcp.cpp
deleted file mode 100644
index f614fa2c5..000000000
--- a/test/channels/channel_tcp.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS)
- *
- * This file is part of libbitcoin.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-#include "../test.hpp"
-
-BOOST_AUTO_TEST_SUITE(channel_tcp_tests)
-
-BOOST_AUTO_TEST_CASE(channel_tcp_test)
-{
- BOOST_REQUIRE(true);
-}
-
-BOOST_AUTO_TEST_SUITE_END()
diff --git a/test/sessions/session_html.cpp b/test/sessions/session_html.cpp
index bb3798526..893c154f7 100644
--- a/test/sessions/session_html.cpp
+++ b/test/sessions/session_html.cpp
@@ -18,9 +18,9 @@
*/
#include "../test.hpp"
-BOOST_AUTO_TEST_SUITE(session_server_tests)
+BOOST_AUTO_TEST_SUITE(session_html_tests)
-BOOST_AUTO_TEST_CASE(session_server_test)
+BOOST_AUTO_TEST_CASE(session_html_tests)
{
BOOST_REQUIRE(true);
}
diff --git a/test/protocols/protocol_tcp.cpp b/test/sessions/session_server.cpp
similarity index 90%
rename from test/protocols/protocol_tcp.cpp
rename to test/sessions/session_server.cpp
index 8aa58f121..bb3798526 100644
--- a/test/protocols/protocol_tcp.cpp
+++ b/test/sessions/session_server.cpp
@@ -18,9 +18,9 @@
*/
#include "../test.hpp"
-BOOST_AUTO_TEST_SUITE(protocol_tcp_tests)
+BOOST_AUTO_TEST_SUITE(session_server_tests)
-BOOST_AUTO_TEST_CASE(protocol_tcp_test)
+BOOST_AUTO_TEST_CASE(session_server_test)
{
BOOST_REQUIRE(true);
}
diff --git a/test/sessions/session_tcp.cpp b/test/sessions/session_tcp.cpp
deleted file mode 100644
index 091525061..000000000
--- a/test/sessions/session_tcp.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Copyright (c) 2011-2025 libbitcoin developers (see AUTHORS)
- *
- * This file is part of libbitcoin.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-#include "../test.hpp"
-
-BOOST_AUTO_TEST_SUITE(session_tcp_tests)
-
-BOOST_AUTO_TEST_CASE(session_tcp_test)
-{
- BOOST_REQUIRE(true);
-}
-
-BOOST_AUTO_TEST_SUITE_END()