parameters: (self, address, server=False, debug=False)
docstring: Create a QEMUMonitorProtocol class.
  
          @param address: QEMU address, can be either a unix socket path (string)
                          or a tuple in the form ( address, port ) for a TCP
                          connection
          @param server: server mode listens on the socket (bool)
          @raise socket.error on socket connection errors
          @note No connection is established, this is done by the connect() or
                accept() methods
docstring_summary: Create a QEMUMonitorProtocol class.
docstring_tokens: Create a QEMUMonitorProtocol class .
function: def __init__(self, address, server=False, debug=False):
          """
          Create a QEMUMonitorProtocol class.
  
          @param address: QEMU address, can be either a unix socket path (string)
                          or a tuple in the form ( address, port ) for a TCP
                          connection
          @param server: server mode listens on the socket (bool)
          @raise socket.error on socket connection errors
          @note No connection is established, this is done by the connect() or
                accept() methods
          """
          self.__events = []
          self.__address = address
          self._debug = debug
          self.__sock = self.__get_sock()
          if server:
              self.__sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
              self.__sock.bind(self.__address)
              self.__sock.listen(1)
function_tokens: def __init__ ( self , address , server = False , debug = False ) : self . __events = [ ] self . __address = address self . _debug = debug self . __sock = self . __get_sock ( ) if server : self . __sock . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) self . __sock . bind ( self . __address ) self . __sock . listen ( 1 )