Used a sockaddr_storage struct instead of a sockaddr struct, since the latter is not big enough for IPv6

This commit is contained in:
2024-03-12 00:25:41 -05:00
parent 7d4fd929c7
commit 24b2a83044
2 changed files with 3 additions and 3 deletions

View File

@@ -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) */