Skip to content

Commit

Permalink
endpoint hostport
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Oct 27, 2023
1 parent 92de2bd commit cd0f6e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eckit/net/Endpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd0f6e5

Please sign in to comment.