diff --git a/CMakeLists.txt b/CMakeLists.txt index e234c7a..1d9509b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ set(ADC_DEVICE_HEADERS set(ADC_NETWORK_HEADERS net/adc_netmessage.h net/adc_netproto.h + net/adc_netservice.h ) option(BUILD_TESTS "Build tests" ON) diff --git a/net/adc_netservice.h b/net/adc_netservice.h new file mode 100644 index 0000000..b3c2d58 --- /dev/null +++ b/net/adc_netservice.h @@ -0,0 +1,59 @@ +#pragma once + +/* + +ABSTRACT DEVICE COMPONENTS LIBRARY + + */ + + + +namespace adc +{ + + +template +class AdcNetService : public IOImplT +{ +public: + /* asynchronuos operations */ + + // open connection + template + auto asyncConnect(ArgTs&&... args) + { + } + + + template + auto asyncSend(NetMessageT&& msg, ArgTs&&... args) + { + } + + template + auto asyncReceive(ArgTs&&... args) + { + } + + + + /* blocking operations */ + + template + auto send(NetMessageT&& msg, ArgTs&&... args) + { + } + + + template + NetMessageT receive(ArgTs&&... args) + { + } + + template + auto close(ArgTs&&... args) + { + } +}; + +} // namespace adc