net/StaticSocketAddress: add method GetSteadyPart()
This commit is contained in:
parent
35cfa6efa3
commit
339b9f6e7b
|
@ -116,6 +116,11 @@ public:
|
|||
bool SetPort(unsigned port) noexcept;
|
||||
#endif
|
||||
|
||||
[[gnu::pure]]
|
||||
std::span<const std::byte> GetSteadyPart() const noexcept {
|
||||
return SocketAddress{*this}.GetSteadyPart();
|
||||
}
|
||||
|
||||
[[gnu::pure]]
|
||||
bool operator==(SocketAddress other) const noexcept {
|
||||
return (SocketAddress)*this == other;
|
||||
|
|
Loading…
Reference in New Issue