Commit ecbe441a authored by jan.koester's avatar jan.koester
Browse files

tcp fixes

parent 1e903cdc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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(){