trepan/inout/tcpserver.py
def close(self):
        """ Closes both socket and server connection. """
        self.state = 'closing'
        if self.inout:
            self.inout.close()
            pass
        self.state = 'closing connection'
        if self.conn:
            self.conn.close()
        self.state = 'disconnected'
        return
def close(self):
        """ Closes both socket and server connection. """
        self.state = 'closing'
        if self.inout:
            self.inout.close()
            pass
        self.state = 'closing connection'
        if self.conn:
            self.conn.close()
        self.state = 'disconnected'
        return
def close ( self ) : self . state = 'closing' if self . inout : self . inout . close ( ) pass self . state = 'closing connection' if self . conn : self . conn . close ( ) self . state = 'disconnected' return
Closes both socket and server connection.
Closes both socket and server connection .