0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +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 &); uint16_t &port(hostport &);
string_view &host(hostport &); string_view &host(hostport &);
string_view &service(hostport &);
string_view string(const mutable_buffer &out, const hostport &); string_view string(const mutable_buffer &out, const hostport &);
string_view canonize(const mutable_buffer &out, const hostport &); string_view canonize(const mutable_buffer &out, const hostport &);
@ -118,6 +119,12 @@ const
return !bool(*this); return !bool(*this);
} }
inline ircd::string_view &
ircd::net::service(hostport &hp)
{
return hp.service;
}
inline ircd::string_view & inline ircd::string_view &
ircd::net::host(hostport &hp) ircd::net::host(hostport &hp)
{ {