[telepathy-python/master] stream_tube_client: connect NewLocalConnection signal
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Jun 12 03:35:43 PDT 2009
---
examples/stream_tube_client.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/examples/stream_tube_client.py b/examples/stream_tube_client.py
index ecc3d23..b6b5eec 100644
--- a/examples/stream_tube_client.py
+++ b/examples/stream_tube_client.py
@@ -119,6 +119,9 @@ class StreamTubeClient:
self.tube[CHANNEL_TYPE_STREAM_TUBE].connect_to_signal(
"NewRemoteConnection",
self.stream_tube_new_remote_connection_cb)
+ self.tube[CHANNEL_TYPE_STREAM_TUBE].connect_to_signal(
+ "NewLocalConnection",
+ self.stream_tube_new_local_connection_cb)
self.got_tube(props)
@@ -157,6 +160,9 @@ class StreamTubeClient:
CONNECTION_HANDLE_TYPE_CONTACT, [handle])[0],
conn_id)
+ def stream_tube_new_local_connection_cb(self, conn_id):
+ print "new socket connection on tube (id: %u)" % conn_id
+
class StreamTubeInitiatorClient(StreamTubeClient):
def __init__(self, account_file, muc_id, contact_id, socket_address=None):
StreamTubeClient.__init__(self, account_file, muc_id, contact_id)
--
1.5.6.5
More information about the telepathy-commits
mailing list