0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::net: Add extern null_remote.

This commit is contained in:
Jason Volk 2017-12-24 17:15:11 -07:00
parent e63632c78f
commit 3d1a173358
2 changed files with 6 additions and 0 deletions

View file

@ -54,6 +54,8 @@ 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

View file

@ -1516,6 +1516,10 @@ ircd::net::string(const mutable_buffer &buf,
// net/remote.h
//
const ircd::net::remote
ircd::net::null_remote
{};
//
// host / port utils
//