parameters: (self, msg=None)
docstring: Send message to the Daemon.
  
          Args:
             msg (bytearray): Message to send.
docstring_summary: Send message to the Daemon.
docstring_tokens: Send message to the Daemon .
function: def send(self, msg=None):
          """Send message to the Daemon.
  
          Args:
             msg (bytearray): Message to send.
          """
          self.__check_socket_connection()
          msg_len = len(msg)  # plus the msglen info
  
          try:
              # convert to network flow
              self.logger.debug("{0}".format(msg.rstrip()))
              self.socket.sendall(struct.pack("!i", msg_len) + msg)
          except socket.error as e:
              self._handleSocketError(e)
function_tokens: def send ( self , msg = None ) : self . __check_socket_connection ( ) msg_len = len ( msg ) # plus the msglen info try : # convert to network flow self . logger . debug ( "{0}" . format ( msg . rstrip ( ) ) ) self . socket . sendall ( struct . pack ( "!i" , msg_len ) + msg ) except socket . error as e : self . _handleSocketError ( e )