AdcNetServiceASIO/AdcNetServiceASIOTLS: new implementation
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "../net/adc_netproto.h"
|
||||
// #include "../net/asio/adc_netservice_asio.h"
|
||||
#include "../net/asio/adc_netsrv_asio.h"
|
||||
#include "../net/asio/adc_netservice_asio.h"
|
||||
|
||||
template <typename T>
|
||||
void receive(T srv)
|
||||
@@ -35,9 +34,10 @@ int main()
|
||||
asio::io_context ctx;
|
||||
|
||||
// using srv_t = adc::impl::AdcNetServiceASIOBase<tr_p_t, adc::AdcStopSeqSessionProto<>>;
|
||||
using srv_t = adc::impl::AdcNetServiceASIOBase<tr_p_t, adc::AdcStopSeqSessionProto<>>;
|
||||
using srv_t = adc::impl::AdcNetServiceASIO<tr_p_t, adc::AdcStopSeqSessionProto<>>;
|
||||
|
||||
typename srv_t::acceptor_t acc(ctx, ept_c);
|
||||
// typename adc::impl::AdcNetserviceAcceptor<srv_t> acc(ctx, ept_c);
|
||||
|
||||
acc.asyncAccept([](std::error_code ec, auto srv) {
|
||||
if (!ec) {
|
||||
|
||||
Reference in New Issue
Block a user