mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
Add sockaddr_storage ostream operator<< for comfortable debugging
This commit is contained in:
parent
79af081f84
commit
3feb048c37
2 changed files with 5 additions and 5 deletions
|
@ -162,6 +162,9 @@ std::ostream &operator<<(std::ostream &out, const struct sockaddr_in &addr)
|
|||
return out;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const sockaddr_storage& addr)
|
||||
{ return o << sockaddr_storage_tostring(addr); }
|
||||
|
||||
/* thread-safe version of inet_ntoa */
|
||||
|
||||
std::string rs_inet_ntoa(struct in_addr in)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue