Used a sockaddr_storage struct instead of a sockaddr struct, since the latter is not big enough for IPv6
This commit is contained in:
@@ -23,7 +23,7 @@ protected:
|
||||
int port;
|
||||
int sock_fd;
|
||||
std::string address;
|
||||
struct sockaddr* dest;
|
||||
struct sockaddr_storage* dest;
|
||||
socklen_t addrlen;
|
||||
int other_socket; // The peer socket (the client if this socket is a server, and the server if this socket is a client) */
|
||||
|
||||
|
Reference in New Issue
Block a user