Last change
on this file since 170:bb143a4ae70d was
65:6936acbdb9bd,
checked in by Ralph Meijer <ralphm@…>, 13 years ago
|
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 size:
575 bytes
|
Line | |
---|
1 | """ |
---|
2 | A generic XMPP router. |
---|
3 | |
---|
4 | This router accepts external server-side component connections on port 5347, |
---|
5 | but only on 127.0.0.1. |
---|
6 | """ |
---|
7 | |
---|
8 | from twisted.application import service, strports |
---|
9 | from wokkel import component |
---|
10 | |
---|
11 | application = service.Application("XMPP router") |
---|
12 | |
---|
13 | router = component.Router() |
---|
14 | |
---|
15 | componentServerFactory = component.XMPPComponentServerFactory(router) |
---|
16 | componentServerFactory.logTraffic = True |
---|
17 | componentServer = strports.service('tcp:5347:interface=127.0.0.1', |
---|
18 | componentServerFactory) |
---|
19 | componentServer.setServiceParent(application) |
---|
Note: See
TracBrowser
for help on using the repository browser.