diff options
author | Aki <please@ignore.pl> | 2021-10-21 19:42:58 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-21 19:42:58 +0200 |
commit | 17f3ab464da4832861fc16b3886c098c424ed5dd (patch) | |
tree | b34576ccb3623ec3d3a4e8c7c7ce37e36d6c816b /common/include | |
parent | 395da4b6861540fcad778cfa0b9ec1f7c16274d6 (diff) | |
download | hwd-17f3ab464da4832861fc16b3886c098c424ed5dd.zip hwd-17f3ab464da4832861fc16b3886c098c424ed5dd.tar.gz hwd-17f3ab464da4832861fc16b3886c098c424ed5dd.tar.bz2 |
Added client/server config with env variables
Diffstat (limited to 'common/include')
-rw-r--r-- | common/include/hwd/internal.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/common/include/hwd/internal.h b/common/include/hwd/internal.h index dab1e32..633c5a9 100644 --- a/common/include/hwd/internal.h +++ b/common/include/hwd/internal.h @@ -4,6 +4,15 @@ namespace hwd { namespace internal { + constexpr int default_port = 4236; -} -} +constexpr const char * default_host = "127.0.0.1"; + +constexpr const char * port_variable = "HWDPORT"; +constexpr const char * host_variable = "HWDHOST"; + +int port(); +const char * host(); + +} // namespace internal +} // namespace hwd |