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:
parent
c44d732443
commit
14cce54b1f
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue