[Telepathy] File Transfers and Sockets - getting butterfly to work with KDE Telepathy

Danielle Madeley danielle.madeley at collabora.co.uk
Mon Jun 20 02:22:22 PDT 2011


So I've run into this before with non-conforming CMs and TpQt4:

Hypothetically the client should choose a socket type from
AvailableSocketTypes [1], but Telepathy-Qt4 does not, and simply assumes
that IPv4 will be available, because the spec says that IPv4 is always
available [2].

The socket type is chosen by the client (or by the client library) when
it calls AcceptFile()/ProvideFile().

The CM should support IPv4, because the spec says it must. However,
TpQt4 should probably also check, and use unix sockets if they're what's
available, to work around broken CMs. You should file bugs for both of
these :)

[1] http://telepathy.freedesktop.org/spec/Channel_Type_File_Transfer.html#Property:AvailableSocketTypes
[2] "Connection Managers MUST support at least Socket_Address_Type_IPv4."

On Fri, 2011-06-17 at 21:44 +0100, David Edmundson wrote:
> I've been trying to get telepathy-butterfly to work with KDE
> Telepathy. We make use of the URI parameter as we have a separate
> handler for file transfers and this needed changes in the CM, so I
> fixed it \o/
> 
> Unfortunately it now fails in a whole new way and I've reached a point
> where I'm stuck.
> 
> Our file transfer starts, the other contact gets to their approver and
> their file-transfer-handler.
> 
> Butterfly then fails, with telepathy stating "socket type 2 is
> unsupported". Socket type 2 is IPv4 according to
> http://telepathy.freedesktop.org/spec/Channel_Interface_Tube.html#Enum:Socket_Address_Type.
>  Telepathy butterfly only supports unix socket types.
> 
> My question is "who is responsible for setting this socket type?" .
> 
> I've searched round TelepahtyQt4 and it doesn't seem to set it, though
> there is a fantastic line in the documentation: " All connection
> Managers support at least SocketAddressTypeIPv4.", this clearly isn't
> true.
> 
> I can't see how this can be the client's fault as it doesn't do
> anything with sockets, butterfly seems to be doing the right thing -
> it only advertises supported unix socket types, but then gets given a
> different one, and it's not lib-telepathy-qt4. This only leaves
> mission-control which I know nothing about. - and it can't be mission
> control's fault because it works in Empathy.
> 
> Any thoughts/ideas?
> 
> Thanks in advance
> 
> Dave
> _______________________________________________
> telepathy mailing list
> telepathy at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/telepathy

-- 
Danielle Madeley
Software Developer, Collabora Ltd.                  Melbourne, Australia

www.collabora.co.uk



More information about the telepathy mailing list