Loading src/linux/socket.cpp +3 −3 Changes for src/linux/socket.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -273,7 +273,7 @@ netplus::tcp* netplus::tcp::connect(){ void netplus::tcp::getAddress(std::string &addr){ if(_SocketPtrSize < 0) if(_SocketPtrSize <= 0) return; char ipaddr[512]; inet_ntop(AF_UNSPEC, (struct sockaddr*)_SocketPtr, ipaddr, _SocketPtrSize); Loading Loading @@ -487,7 +487,7 @@ netplus::udp* netplus::udp::connect(){ } void netplus::udp::getAddress(std::string &addr){ if(_SocketPtrSize < 0) if(_SocketPtrSize <= 0) return; char ipaddr[512]; inet_ntop(AF_UNSPEC, (struct sockaddr*)_SocketPtr, ipaddr, _SocketPtrSize); Loading Loading @@ -659,7 +659,7 @@ netplus::ssl* netplus::ssl::connect(){ } void netplus::ssl::getAddress(std::string &addr){ if(_SocketPtrSize < 0) if(_SocketPtrSize <= 0) return; char ipaddr[512]; inet_ntop(AF_UNSPEC, (struct sockaddr*)_SocketPtr, ipaddr, _SocketPtrSize); Loading Loading
src/linux/socket.cpp +3 −3 Changes for src/linux/socket.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -273,7 +273,7 @@ netplus::tcp* netplus::tcp::connect(){ void netplus::tcp::getAddress(std::string &addr){ if(_SocketPtrSize < 0) if(_SocketPtrSize <= 0) return; char ipaddr[512]; inet_ntop(AF_UNSPEC, (struct sockaddr*)_SocketPtr, ipaddr, _SocketPtrSize); Loading Loading @@ -487,7 +487,7 @@ netplus::udp* netplus::udp::connect(){ } void netplus::udp::getAddress(std::string &addr){ if(_SocketPtrSize < 0) if(_SocketPtrSize <= 0) return; char ipaddr[512]; inet_ntop(AF_UNSPEC, (struct sockaddr*)_SocketPtr, ipaddr, _SocketPtrSize); Loading Loading @@ -659,7 +659,7 @@ netplus::ssl* netplus::ssl::connect(){ } void netplus::ssl::getAddress(std::string &addr){ if(_SocketPtrSize < 0) if(_SocketPtrSize <= 0) return; char ipaddr[512]; inet_ntop(AF_UNSPEC, (struct sockaddr*)_SocketPtr, ipaddr, _SocketPtrSize); Loading