Sandro Munda
8def3758e4
Added the get_socket(sid) method to the xep_0065 plugin to retrieve
...
the socket of the Proxy thread.
2012-06-07 19:36:25 +02:00
Sandro Munda
1851ab6f5f
Added the SID in the socks_recv xmpp event in the xep_0065 plugin.
2012-06-07 19:24:23 +02:00
Sandro Munda
289b052338
Renamed Query to Socks5 in the xep_0065.
...
Renamed the 'q' plugin_attrib of the Socks5 stanza to 'socks'.
2012-06-07 19:14:37 +02:00
Sandro Munda
26147f5ae0
Added a top level field to the xep_0065 class:
...
name = 'xep_0065'
2012-06-07 19:08:20 +02:00
Sandro Munda
ae01f1071a
Fixed the callback names of the xep_0065:
...
In-Band bytestreams -> Socks5 bytestreams
2012-06-07 19:04:24 +02:00
Sandro Munda
dcdf5dcd09
Added the Socksipy module in the thirdparty of SleekXMPP.
...
Updated the LICENSE file with the license of the Socksipy
module (New-BSD).
2012-06-07 19:02:09 +02:00
Sandro Munda
c59a6d0f51
Sent a socks_closed when the socket is closed in the xep_0065 plugin.
2012-06-07 18:38:57 +02:00
Sandro Munda
2cd936318d
Improved the close of the proxy thread (and the socket) in the xep_0065 plugin.
2012-06-07 18:38:57 +02:00
Sandro Munda
2f38857681
Changed the description of the xep_0065 plugin
2012-06-07 18:38:56 +02:00
Sandro Munda
39505ae1ff
The xep_0065 plugin supports now multiple stream (multiple connected
...
sockets).
To send data over a stream, we need to pass the SID in order to
retrieve the good proxy thread (and so, the good socket).
2012-06-07 18:38:56 +02:00
Sandro Munda
44ee0633f2
Renamed the _handle_on_recv to the on_recv method.
...
Renamed requester_thread and target_thread to proxy. The send method is now simpler.
2012-06-07 18:38:56 +02:00
Sandro Munda
b52d2768b0
Added some comments to the get_network_address method
2012-06-07 18:38:56 +02:00
Sandro Munda
cf24b870b1
Registered stanza plugin in the stanza module
2012-06-07 18:38:56 +02:00
Sandro Munda
69cffce7dc
Used the namespace in all stanzas
2012-06-07 18:38:56 +02:00
Sandro Munda
a14979375b
Added a partial support of the XEP 0065 - Socks5 Bytestreams
2012-06-07 18:38:56 +02:00
Sandro Munda
40ef4a16b1
Updated the .gitignore to add .ropeproject/ folder
2012-06-07 18:38:56 +02:00
Lance Stout
f5652a667b
Add 'presence' event, raised for all incoming presence stanzas.
2012-06-06 16:10:25 -07:00
Lance Stout
3b2c865a58
Bump version to 1.1.2
2012-06-06 12:26:15 -07:00
Lance Stout
db0e683d01
Don't request registration forms unless the register event is handled.
...
Some servers end the stream if registration can not be completed
in-band, which means always requesting the form can prevent regular
login.
2012-06-06 12:23:40 -07:00
Lance Stout
e29a9e0394
Bump version for 1.1.1 minor release.
2012-06-04 11:56:53 -07:00
Lance Stout
edf65f4f52
Include the default, unnamed group in self.client_roster.groups()
2012-06-04 11:54:25 -07:00
Lance Stout
98677fd602
Don't add cert expiration timer if no certs are being used.
2012-06-04 11:53:58 -07:00
Lance Stout
61a4f76c8d
Update version and README for 1.1
2012-06-01 14:13:17 -07:00
Lance Stout
856a826eea
Fix syntax error in line continuation.
2012-06-01 14:09:14 -07:00
Lance Stout
387ef513d6
Check that the session is still alive before sending data.
...
Fixes issue #168
2012-06-01 13:50:38 -07:00
Lance Stout
2858dbf57f
Update development version number to prepare for 1.1 release.
2012-05-31 22:07:36 -07:00
Lance Stout
350a2b8bbc
Preemptively mark threads as exited if calling disconnect().
2012-05-31 22:04:45 -07:00
Lance Stout
c9093c9972
Handle not being able to connect using IPv6 if the host does not support it.
2012-05-27 16:33:21 -07:00
Lance Stout
d1ad31696e
Fix X-FACEBOOK-PLATFORM mechanism to work with Python3.
2012-05-25 11:04:46 -07:00
Lance Stout
f49311ef9e
Add better certificate handling.
...
Certificate host names are now matched (using DNS, SRV, XMPPAddr, and
Common Name), along with expiration check.
Scheduled event to reset the stream once the server's cert expires.
Handle invalid cert trust chains gracefully now.
2012-05-22 03:56:06 -07:00
Lance Stout
678e529efc
Remove unused xmlstream test client.
...
It's in the repo history if we need it later.
2012-05-17 22:27:03 -07:00
Lance Stout
6ddb430fef
Spell thirdparty correctly.
2012-05-16 12:00:00 -07:00
Lance Stout
74d1f88146
Prune unused conn_test code.
2012-05-16 11:57:55 -07:00
Lance Stout
7842c55da3
Add auth_success event.
...
The auth_success event is triggered upon successful SASL negotiation.
2012-05-15 14:26:25 -07:00
Lance Stout
f5beac2afa
Use SASLPrepFailure as the exception name instead of UnicodeError.
2012-05-14 23:12:54 -07:00
Lance Stout
8a23f28dfa
Add an exception handler for SASLprep failures.
2012-05-14 22:26:06 -07:00
Lance Stout
9c4886e746
Remove extra connection info so that examples run without modification.
...
GTalk users may still need to change the connect() call if dnspython is
not installed, as usual.
2012-05-14 22:17:39 -07:00
Lance Stout
e0bcd5d722
Add more documentation to the custom stanza examples.
2012-05-14 22:12:52 -07:00
Erick Pérez Castellanos
ba854e7d85
Added custom_stanza example
2012-05-14 21:47:43 -07:00
Lance Stout
4ded34ebc9
Add MUC events for room configuration changes.
...
New events:
groupchat_config_status
muc::[room JID]::config_status
2012-05-14 16:10:22 -07:00
Lance Stout
e918a86028
Make the error message better regarding hanged threads.
...
All event handlers which call disconnect() MUST be registered using
`add_event_handler(..., threaded=True)` in order to prevent temporarily
deadlocking until a timeout occurs.
This is required because disconnect() waits for the main threads to
exit before returning, including the event processing thread. Since
handlers registered without `threaded=True` run in the event processing
thread, the disconnect() call will deadlock.
2012-05-10 10:22:38 -07:00
Lance Stout
24234bf718
Update other examples to use threaded mode for handlers that call disconnect()
2012-05-06 20:19:02 -07:00
Lance Stout
ec99339140
Update send_client.py to call disconnect() from a threaded handler.
2012-05-06 20:07:05 -07:00
Lance Stout
03dedfc871
Windows doesn't support inet_pton.
2012-05-06 12:17:50 -07:00
Lance Stout
9e86a7b357
Tidy up and add tests for multi_attrib plugins.
2012-05-05 14:01:13 -07:00
Lance Stout
6a32417957
Merge pull request #163 from whooo/master
...
factory for recurring substanzas
2012-05-05 11:34:29 -07:00
Lance Stout
97a7be7dfa
Fix loading plugins from custom modules when passing the module itself.
...
Loading plugins from custom modules when passed as a string still works.
2012-05-04 09:51:02 -07:00
Erik Larsson
fa86f956ef
added multifactory and support for it to register_stanza_plugin
2012-04-30 22:19:17 +02:00
Lance Stout
a9acff5294
Collapse initial payload to a single stanza instead of a list if only one stanza is found.
2012-04-30 11:16:10 -07:00
Lance Stout
ad5b61de50
Add full support for initial payloads with adhoc commands, plus test.
2012-04-30 11:07:54 -07:00