Loading src/linux/socket.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -121,10 +121,12 @@ netplus::tcp::tcp(const char* addr, int port,int maxconnections,int sockopts) : } netplus::tcp::~tcp(){ if(_Socket>=0) ::close(_Socket); if(!_UxPath.empty()){ unlink(_UxPath.c_str()); } delete (struct sockaddr*)_SocketPtr; } netplus::tcp::tcp() : socket(){ Loading Loading
src/linux/socket.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -121,10 +121,12 @@ netplus::tcp::tcp(const char* addr, int port,int maxconnections,int sockopts) : } netplus::tcp::~tcp(){ if(_Socket>=0) ::close(_Socket); if(!_UxPath.empty()){ unlink(_UxPath.c_str()); } delete (struct sockaddr*)_SocketPtr; } netplus::tcp::tcp() : socket(){ Loading