0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +01:00

ircd::net: Add missing service(hostport) mutable referencer.

This commit is contained in:
Jason Volk 2020-03-05 19:53:19 -08:00
parent c44d732443
commit 14cce54b1f

View file

@ -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)
{