...
This commit is contained in:
@@ -116,8 +116,8 @@ class AdcBaseNetServiceASIO : public SESSION_PROTOT
|
||||
{
|
||||
public:
|
||||
#ifdef USE_OPENSSL_WITH_ASIO
|
||||
static_assert(!(USE_TLS && adc_asio_tls_transport_proto_c<TRANSPORT_PROTOT>),
|
||||
"INVALID 'TRANSPORT_PROTOT' TEMPLATE ARGUMENT!");
|
||||
// static_assert(!(USE_TLS && adc_asio_tls_transport_proto_c<TRANSPORT_PROTOT>),
|
||||
// "INVALID 'TRANSPORT_PROTOT' TEMPLATE ARGUMENT!");
|
||||
|
||||
static constexpr bool isTLS = USE_TLS;
|
||||
#else // ignore USE_TLS
|
||||
@@ -250,7 +250,8 @@ public:
|
||||
template <traits::adc_time_duration_c DT = decltype(DEFAULT_ACCEPT_TIMEOUT)>
|
||||
auto accept(const endpoint_t& endpoint, const DT& timeout = DEFAULT_ACCEPT_TIMEOUT)
|
||||
{
|
||||
return accept(endpoint, timeout);
|
||||
_acceptor = srv_acceptor_t(_ioContext, endpoint);
|
||||
return accept(timeout);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user