def send_msg(recipient, message, jid=None, password=None, profile=None):
 if profile:
  creds = __salt__['config.option'](profile)
  jid = creds.get('xmpp.jid')
  password = creds.get('xmpp.password')
 xmpp = SendMsgBot(jid, password, recipient, message)
 xmpp.register_plugin('xep_0030')
 xmpp.register_plugin('xep_0199')
 if xmpp.connect():
  xmpp.process(block=True)
  return True
 return False

def send_msg ( recipient , message , jid = None , password = None , profile = None ) : if profile : creds = __salt__ [ 'config.option' ] ( profile ) jid = creds . get ( 'xmpp.jid' ) password = creds . get ( 'xmpp.password' ) xmpp = SendMsgBot ( jid , password , recipient , message ) xmpp . register_plugin ( 'xep_0030' ) xmpp . register_plugin ( 'xep_0199' ) if xmpp . connect ( ) : xmpp . process ( block = True ) return True return False
send an openflow message and wait for reply messages .