diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index b3702ec4d..72287a8d1 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -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; }