diff --git a/include/ircd/net/hostport.h b/include/ircd/net/hostport.h index 7ea1ab59f..385c7c9c5 100644 --- a/include/ircd/net/hostport.h +++ b/include/ircd/net/hostport.h @@ -25,6 +25,7 @@ namespace ircd::net uint16_t &port(hostport &); string_view &host(hostport &); + string_view &service(hostport &); string_view string(const mutable_buffer &out, const hostport &); string_view canonize(const mutable_buffer &out, const hostport &); @@ -118,6 +119,12 @@ const return !bool(*this); } +inline ircd::string_view & +ircd::net::service(hostport &hp) +{ + return hp.service; +} + inline ircd::string_view & ircd::net::host(hostport &hp) {