Ignore:
Timestamp:
Jul 8, 2009, 10:05:58 PM (13 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@183
Message:

Add support for the XMPP Ping protocol.

Author: ralphm
Fixes #55.

This adds a whole bunch of examples around the ping protocol in different
settings for both the pinger and pingee: as a external server-side component,
as a standalone server with server-to-server connectivity and as a client.

Also updates the disco support to allow for non-deferred responses from
subprotocol handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/disco.py

    r63 r65  
    539539        @rtype: L{defer.Deferred}
    540540        """
    541         dl = [handler.getDiscoInfo(requestor, target, nodeIdentifier)
     541        dl = [defer.maybeDeferred(handler.getDiscoInfo, requestor, target,
     542                                                        nodeIdentifier)
    542543              for handler in self.parent
    543544              if IDisco.providedBy(handler)]
     
    561562        @rtype: L{defer.Deferred}
    562563        """
    563         dl = [handler.getDiscoItems(requestor, target, nodeIdentifier)
     564        dl = [defer.maybeDeferred(handler.getDiscoItems, requestor, target,
     565                                                         nodeIdentifier)
    564566              for handler in self.parent
    565567              if IDisco.providedBy(handler)]
Note: See TracChangeset for help on using the changeset viewer.