Example #1
0
 def _event_dispatcher(self, realm, event, data):
     CommonConnection._event_dispatcher(self, realm, event, data)
     if realm == '':
         if event == nbxmpp.transports_nb.DATA_ERROR:
             thread_id = data[1]
             frm = unicode(data[0])
             session = self.get_or_create_session(frm, thread_id)
             gajim.nec.push_incoming_event(MessageErrorEvent(
                 None, conn=self, fjid=frm, error_code=-1, error_msg=_(
                 'Connection to host could not be established: Timeout while '
                 'sending data.'), msg=None, time_=None, session=session))
Example #2
0
 def _event_dispatcher(self, realm, event, data):
     CommonConnection._event_dispatcher(self, realm, event, data)
     if realm == '':
         if event == nbxmpp.transports_nb.DATA_ERROR:
             thread_id = data[1]
             frm = data[0]
             session = self.get_or_create_session(frm, thread_id)
             gajim.nec.push_incoming_event(MessageErrorEvent(
                 None, conn=self, fjid=frm, error_code=-1, error_msg=_(
                 'Connection to host could not be established: Timeout while '
                 'sending data.'), msg=None, time_=None, session=session))
Example #3
0
    def __init__(self, name):
        ConnectionHandlersZeroconf.__init__(self)
        # system username
        self.username = None
        self.server_resource = '' # zeroconf has no resource, fake an empty one
        self.call_resolve_timeout = False
        # we don't need a password, but must be non-empty
        self.password = '******'
        self.autoconnect = False

        CommonConnection.__init__(self, name)
        self.is_zeroconf = True

        gajim.ged.register_event_handler('message-outgoing', ged.OUT_CORE,
            self._nec_message_outgoing)
Example #4
0
    def __init__(self, name):
        ConnectionHandlersZeroconf.__init__(self)
        # system username
        self.username = None
        self.server_resource = ''  # zeroconf has no resource, fake an empty one
        self.call_resolve_timeout = False
        # we don't need a password, but must be non-empty
        self.password = '******'
        self.autoconnect = False

        CommonConnection.__init__(self, name)
        self.is_zeroconf = True

        gajim.ged.register_event_handler('message-outgoing', ged.OUT_CORE,
                                         self._nec_message_outgoing)