...
This commit is contained in:
@@ -21,16 +21,20 @@ void receive(T srv)
|
||||
|
||||
int main()
|
||||
{
|
||||
asio::ip::tcp::endpoint ept_s(asio::ip::tcp::v4(), 9999);
|
||||
asio::ip::tcp::endpoint ept_c(asio::ip::make_address_v4("0.0.0.0"), 9999);
|
||||
// asio::ip::tcp::endpoint ept_c(asio::ip::address_v4::any(), 9999);
|
||||
// using tr_p_t = asio ::ip::tcp;
|
||||
// using tr_p_t = asio::local::stream_protocol;
|
||||
using tr_p_t = asio::local::seq_packet_protocol;
|
||||
|
||||
// std::cout << "ADDR: " << ept_s << "\n";
|
||||
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);
|
||||
std::cout << "ADDR: " << ept_c << "\n";
|
||||
|
||||
asio::io_context ctx;
|
||||
|
||||
using srv_t = adc::impl::AdcNetServiceASIOBase<asio::ip::tcp, adc::AdcStopSeqSessionProto<>>;
|
||||
// using srv_t = adc::impl::AdcNetServiceASIOBase<tr_p_t, adc::AdcStopSeqSessionProto<>>;
|
||||
using srv_t = adc::impl::AdcNetServiceASIOBase<tr_p_t, adc::AdcStopSeqSessionProto<>>;
|
||||
|
||||
typename srv_t::acceptor_t acc(ctx, ept_c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user