mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::net: Consistent nesting for null_remote to remote::null.
This commit is contained in:
parent
bf9db52428
commit
46482e61f2
2 changed files with 6 additions and 6 deletions
|
@ -54,8 +54,6 @@ namespace ircd::net
|
|||
std::string string(const hostport &);
|
||||
std::string string(const ipport &);
|
||||
std::string string(const remote &);
|
||||
|
||||
extern const remote null_remote;
|
||||
}
|
||||
|
||||
/// This structure holds a hostname and port usually fresh from user input
|
||||
|
@ -119,6 +117,8 @@ struct ircd::net::ipport
|
|||
struct ircd::net::remote
|
||||
:ircd::net::ipport
|
||||
{
|
||||
static const remote null;
|
||||
|
||||
std::string hostname;
|
||||
|
||||
operator bool() const;
|
||||
|
|
|
@ -1516,10 +1516,6 @@ ircd::net::string(const mutable_buffer &buf,
|
|||
// net/remote.h
|
||||
//
|
||||
|
||||
const ircd::net::remote
|
||||
ircd::net::null_remote
|
||||
{};
|
||||
|
||||
//
|
||||
// host / port utils
|
||||
//
|
||||
|
@ -1686,6 +1682,10 @@ ircd::net::string(const remote &remote,
|
|||
// remote
|
||||
//
|
||||
|
||||
const ircd::net::remote
|
||||
ircd::net::remote::null
|
||||
{};
|
||||
|
||||
ircd::net::remote::remote(hostport hp)
|
||||
:remote{std::move(hp.first), hp.second}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue