net/StaticSocketAddress: add method SetMaxSize()

This commit is contained in:
Max Kellermann 2017-08-10 12:24:59 +02:00
parent ee6eea95af
commit c0020142da

View File

@ -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;
}