parameters: (self)
return_statement: return msg
docstring: Receive a single message.
  
          This is,
          header (4 bytes): if
  
              * > 0: length of the following message
              * < 0: Bareos signal
  
          Returns:
             bytearray: Message retrieved via the connection.
  
          Raises:
              bareos.exceptions.SignalReceivedException:
                  If a Bareos signal is received.
docstring_summary: Receive a single message.
docstring_tokens: Receive a single message .
function: def recv(self):
          """Receive a single message.
  
          This is,
          header (4 bytes): if
  
              * > 0: length of the following message
              * < 0: Bareos signal
  
          Returns:
             bytearray: Message retrieved via the connection.
  
          Raises:
              bareos.exceptions.SignalReceivedException:
                  If a Bareos signal is received.
          """
          self.__check_socket_connection()
          # get the message header
          header = self.__get_header()
          if header <= 0:
              self.logger.debug("header: " + str(header))
              raise bareos.exceptions.SignalReceivedException(header)
          # get the message
          length = header
          msg = self.recv_submsg(length)
          return msg
function_tokens: def recv ( self ) : self . __check_socket_connection ( ) # get the message header header = self . __get_header ( ) if header <= 0 : self . logger . debug ( "header: " + str ( header ) ) raise bareos . exceptions . SignalReceivedException ( header ) # get the message length = header msg = self . recv_submsg ( length ) return msg