Loading src/posix/tcp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ void netplus::tcp::getAddress(std::string &addr){ char buf[512]; addr = inet_ntop(((struct addrinfo*)_SocketInfo)->ai_family, &((struct addrinfo*)_SocketInfo)->ai_addr->sa_data + sizeof(struct sockaddr_storage), buf, &((struct addrinfo*)_SocketInfo)->ai_addr, buf, ((struct addrinfo*)_SocketInfo)->ai_addrlen ); } src/posix/udp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ void netplus::udp::getAddress(std::string &addr){ char buf[512]; addr = inet_ntop(((struct addrinfo*)_SocketInfo)->ai_family, &((struct addrinfo*)_SocketInfo)->ai_addr->sa_data + sizeof(struct sockaddr_storage), buf, &((struct addrinfo*)_SocketInfo)->ai_addr, buf, ((struct addrinfo*)_SocketInfo)->ai_addrlen ); } Loading
src/posix/tcp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ void netplus::tcp::getAddress(std::string &addr){ char buf[512]; addr = inet_ntop(((struct addrinfo*)_SocketInfo)->ai_family, &((struct addrinfo*)_SocketInfo)->ai_addr->sa_data + sizeof(struct sockaddr_storage), buf, &((struct addrinfo*)_SocketInfo)->ai_addr, buf, ((struct addrinfo*)_SocketInfo)->ai_addrlen ); }
src/posix/udp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ void netplus::udp::getAddress(std::string &addr){ char buf[512]; addr = inet_ntop(((struct addrinfo*)_SocketInfo)->ai_family, &((struct addrinfo*)_SocketInfo)->ai_addr->sa_data + sizeof(struct sockaddr_storage), buf, &((struct addrinfo*)_SocketInfo)->ai_addr, buf, ((struct addrinfo*)_SocketInfo)->ai_addrlen ); }