From c356e5784c30fa83393700d571b030e2c0653850 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Fri, 4 Feb 2022 19:29:22 +0100 Subject: [PATCH] missing implementation for StringNetworkAddress added and local install location for scons fixed --- SConstruct | 6 +++--- source/forstio/io.cpp | 12 +++++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 44d50d5..b5c1a34 100644 --- a/SConstruct +++ b/SConstruct @@ -88,8 +88,8 @@ env.Alias('format', env.format_actions) env.Alias('all', ['format', 'library_shared', 'library_static', 'test']) env.Install('/usr/local/lib/', [env.library_shared, env.library_static]) -env.Install('/usr/local/include/kelgin/', [env.headers]) -env.Install('/usr/local/include/kelgin/tls/', [env.tls_headers]) +env.Install('/usr/local/include/forstio/', [env.headers]) +env.Install('/usr/local/include/forstio/tls/', [env.tls_headers]) -env.Install('/usr/local/include/kelgin/test/', [env.test_headers]) +env.Install('/usr/local/include/forstio/test/', [env.test_headers]) env.Alias('install', '/usr/local/') diff --git a/source/forstio/io.cpp b/source/forstio/io.cpp index e835617..ce84fc0 100644 --- a/source/forstio/io.cpp +++ b/source/forstio/io.cpp @@ -58,4 +58,14 @@ Conveyor AsyncIoStream::writeDone() { write_stepper.write_done = std::move(caf.feeder); return std::move(caf.conveyor); } -} // namespace saw \ No newline at end of file + +StringNetworkAddress::StringNetworkAddress(const std::string &address, + uint16_t port) + : address_value{address}, port_value{port} {} + +const std::string &StringNetworkAddress::address() const { + return address_value; +} + +uint16_t StringNetworkAddress::port() const { return port_value; } +} // namespace saw