parameters: (self)
docstring: close socket, immediately.
docstring_summary: close socket, immediately.
docstring_tokens: close socket immediately .
function: def shutdown(self):
          "close socket, immediately."
          if self.sock:
              self.sock.close()
              self.sock = None
              self.connected = False
function_tokens: def shutdown ( self ) : if self . sock : self . sock . close ( ) self . sock = None self . connected = False