This commit is contained in:
2024-10-10 17:57:06 +03:00
parent 2e6deffdd2
commit d1d822415b
2 changed files with 95 additions and 422 deletions

View File

@@ -21,14 +21,14 @@ void receive(T srv)
int main()
{
// using tr_p_t = asio ::ip::tcp;
using tr_p_t = asio ::ip::tcp;
// using tr_p_t = asio::local::stream_protocol;
using tr_p_t = asio::local::seq_packet_protocol;
// using tr_p_t = asio::local::seq_packet_protocol;
tr_p_t::endpoint ept_c(std::string("/tmp/AAA").insert(0, 1, '\0'));
// tr_p_t::endpoint ept_c(std::string("/tmp/AAA").insert(0, 1, '\0'));
// tr_p_t::endpoint ept_c("/tmp/AAA");
// tr_p_t::endpoint ept_c(asio::ip::make_address_v4("0.0.0.0"), 9999);
tr_p_t::endpoint ept_c(asio::ip::make_address_v4("0.0.0.0"), 9999);
std::cout << "ADDR: " << ept_c << "\n";
asio::io_context ctx;