[Telepathy] Reusing Connection objects
Andre Magalhaes
andrunko at gmail.com
Wed Jun 7 12:52:15 PDT 2006
Hi all,
Me again. I was looking at Telepathy spec 0.13.1 and couldn't see a
way to reuse a connection. Is this intentional? If not, here are some
of my suggestions to make it work.
First modify ConnectionManager.RequestConnection to just receive a
proto string as parameter. Move the connection parameters to
Connection.Connect, so when a user disconnects, it can reuse the
Connection object and if necessary change the connection parameters.
The Connection.Disconnect call should not destroy the Connection.
But when it will be deleted from the connection manager? The
connection object should provide a method to destroy itself, so when
the user don't want to use this connection anymore, it can be
destroyed. The connection manager must also know when clients using
this connection disappear from the bus, so the connection can be
destroyed in this case also.
What do you think?
BR
Andrunko
More information about the Telepathy
mailing list