mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd::net: Add extern null_remote.
This commit is contained in:
parent
e63632c78f
commit
3d1a173358
2 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,8 @@ namespace ircd::net
|
||||||
std::string string(const hostport &);
|
std::string string(const hostport &);
|
||||||
std::string string(const ipport &);
|
std::string string(const ipport &);
|
||||||
std::string string(const remote &);
|
std::string string(const remote &);
|
||||||
|
|
||||||
|
extern const remote null_remote;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This structure holds a hostname and port usually fresh from user input
|
/// This structure holds a hostname and port usually fresh from user input
|
||||||
|
|
|
@ -1516,6 +1516,10 @@ ircd::net::string(const mutable_buffer &buf,
|
||||||
// net/remote.h
|
// net/remote.h
|
||||||
//
|
//
|
||||||
|
|
||||||
|
const ircd::net::remote
|
||||||
|
ircd::net::null_remote
|
||||||
|
{};
|
||||||
|
|
||||||
//
|
//
|
||||||
// host / port utils
|
// host / port utils
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue