net/StaticSocketAddress: add method SetMaxSize()
This commit is contained in:
parent
ee6eea95af
commit
c0020142da
@ -79,6 +79,13 @@ public:
|
|||||||
size = _size;
|
size = _size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the size to the maximum value for this class.
|
||||||
|
*/
|
||||||
|
void SetMaxSize() {
|
||||||
|
SetSize(GetCapacity());
|
||||||
|
}
|
||||||
|
|
||||||
int GetFamily() const noexcept {
|
int GetFamily() const noexcept {
|
||||||
return address.ss_family;
|
return address.ss_family;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user