diff --git a/src/eckit/net/Endpoint.h b/src/eckit/net/Endpoint.h index 3fbb12e81..5ad08bcb2 100644 --- a/src/eckit/net/Endpoint.h +++ b/src/eckit/net/Endpoint.h @@ -38,6 +38,8 @@ class Endpoint { const std::string& host() const { return host_; } int port() const { return port_; } + std::string hostport() const { return host_+":"+std::to_string(port_); } + bool operator==(const net::Endpoint& other); void print(std::ostream& os) const;