def setup_transport(self):
    log.msg(('Starting XMPPTransport: %s' % self.transport_name))
    self.jid = JID(self.username)
    self.xmpp_client = self._xmpp_client(self.jid, self.password, self.host, self.port)
    self.xmpp_client.logTraffic = self.debug
    self.xmpp_client.setServiceParent(self)
    self.presence = TransportPresenceClientProtocol(self.announce_presence)
    self.presence.setHandlerParent(self.xmpp_client)
    self.pinger = PingClientProtocol()
    self.pinger.setHandlerParent(self.xmpp_client)
    self.ping_call.start(self.ping_interval, now=False)
    roster = TransportRosterClientProtocol()
    roster.setHandlerParent(self.xmpp_client)
    self.xmpp_protocol = self._xmpp_protocol(self.jid, self.publish_message, self.message_consumer.unpause)
    self.xmpp_protocol.setHandlerParent(self.xmpp_client)
    log.msg(('XMPPTransport %s started.' % self.transport_name))
def setup_transport(self):
    log.msg(('Starting XMPPTransport: %s' % self.transport_name))
    self.jid = JID(self.username)
    self.xmpp_client = self._xmpp_client(self.jid, self.password, self.host, self.port)
    self.xmpp_client.logTraffic = self.debug
    self.xmpp_client.setServiceParent(self)
    self.presence = TransportPresenceClientProtocol(self.announce_presence)
    self.presence.setHandlerParent(self.xmpp_client)
    self.pinger = PingClientProtocol()
    self.pinger.setHandlerParent(self.xmpp_client)
    self.ping_call.start(self.ping_interval, now=False)
    roster = TransportRosterClientProtocol()
    roster.setHandlerParent(self.xmpp_client)
    self.xmpp_protocol = self._xmpp_protocol(self.jid, self.publish_message, self.message_consumer.unpause)
    self.xmpp_protocol.setHandlerParent(self.xmpp_client)
    log.msg(('XMPPTransport %s started.' % self.transport_name))