Improved socket code
* Removed assertion * Fixes networking/compiling on the Haiku operating system Co-authored-by: Benau <Benau@users.noreply.github.com>
This commit is contained in:
parent
d8709fde8f
commit
6e4c4a757d
@ -46,10 +46,7 @@
|
|||||||
class SocketAddress
|
class SocketAddress
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
// We need to have a biggest size to hold all type of sockaddr
|
std::array<char, sizeof(sockaddr_storage)> m_sockaddr;
|
||||||
static_assert(sizeof(sockaddr_in6) > sizeof(sockaddr_in),
|
|
||||||
"Invalid sockaddr size");
|
|
||||||
std::array<char, sizeof(sockaddr_in6)> m_sockaddr;
|
|
||||||
|
|
||||||
short m_family;
|
short m_family;
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user