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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user