qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::io::use< _Derived > Struct Template Reference

Helper template providing type aliases for integrating qb-io asynchronous components. More...

#include <async.h>

Classes

struct  tcp
 Provides type aliases for TCP-based asynchronous components. More...
struct  udp
 Provides type aliases for UDP-based asynchronous components. More...

Public Types

template<typename _Protocol>
using input = async::input<_Derived>
template<typename _Protocol>
using output = async::output<_Derived>
template<typename _Protocol>
using io = async::io<_Derived>
using timeout = async::with_timeout<_Derived>
using file = async::file<_Derived>

Detailed Description

template<typename _Derived>
struct qb::io::use< _Derived >

Helper template providing type aliases for integrating qb-io asynchronous components.

This CRTP helper simplifies the declaration of actors or classes that use qb-io's asynchronous features (like TCP clients/servers, UDP endpoints, file watchers) by providing convenient nested type aliases for the underlying asynchronous base classes and transports.

Template Parameters
_DerivedThe class that will inherit from one of the use helper's nested types.