summaryrefslogtreecommitdiff
path: root/modules/io/c++/io.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/io/c++/io.hpp')
-rw-r--r--modules/io/c++/io.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/io/c++/io.hpp b/modules/io/c++/io.hpp
index 43ef7f0..390ddcc 100644
--- a/modules/io/c++/io.hpp
+++ b/modules/io/c++/io.hpp
@@ -8,6 +8,10 @@
#include <variant>
namespace saw {
+namespace net {
+struct Os {};
+}
+
/**
* Set of error common in io
*/
@@ -166,6 +170,7 @@ public:
network_address::child_variant representation() override { return this; }
};
+template<typename T = net::Os>
class network {
public:
virtual ~network() = default;
@@ -209,7 +214,7 @@ public:
virtual own<input_stream> wrap_input_fd(int fd) = 0;
- virtual network &get_network() = 0;
+ virtual network<net::Os> &get_network() = 0;
};
struct async_io_context {