2 SleekXMPP: The Sleek XMPP Library
3 Copyright (C) 2011 Dann Martens
4 This file is part of SleekXMPP.
6 See the file LICENSE for copying permission.
9 from sleekxmpp
.plugins
.xep_0009
.remote
import Endpoint
, remote
, Remote
, \
13 class Boomerang(Endpoint
):
26 session
= Remote
.new_session('kangaroo@xmpp.org/rpc', '*****')
28 session
.new_handler(ANY_ALL
, Boomerang
)
30 boomerang
= session
.new_proxy('kangaroo@xmpp.org/rpc', Boomerang
)
34 boomerang
.async(callback
).throw()
42 if __name__
== '__main__':