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:
Panagiotis Vasilopoulos 2020-06-14 21:42:25 +03:00
parent d8709fde8f
commit 6e4c4a757d

View File

@ -46,10 +46,7 @@
class SocketAddress
{
private:
// We need to have a biggest size to hold all type of sockaddr
static_assert(sizeof(sockaddr_in6) > sizeof(sockaddr_in),
"Invalid sockaddr size");
std::array<char, sizeof(sockaddr_in6)> m_sockaddr;
std::array<char, sizeof(sockaddr_storage)> m_sockaddr;
short m_family;
public: