Commit c0020142 authored by Max Kellermann's avatar Max Kellermann

net/StaticSocketAddress: add method SetMaxSize()

parent ee6eea95
......@@ -79,6 +79,13 @@ public:
size = _size;
}
/**
* Set the size to the maximum value for this class.
*/
void SetMaxSize() {
SetSize(GetCapacity());
}
int GetFamily() const noexcept {
return address.ss_family;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment