Hi,

for XEP-0234: Jingle File Transfer
(https://xmpp.org/extensions/xep-0234.html), how is one supposed to
detect the end of a file transfer?

I currently see two methods:

1) The transport method has a way of closing the stream. This exists for
IBB, via the `<close>` element. It also exists for S5B, via closing the
TCP connection.

2) Counting the bytes until you receive as many bytes as promised by the
file offer. This works if the non-mandatory `<size>` tag is present in
the file offer.

Could the XEP be amended to clarify how to do this? If 2) is the
supposed method, could the XEP be changed so that the `<size>` tag is
mandatory for offering a file?

Conversations currently does 2). It closes the IBB but not the S5B which
is why this question even arose.

I posted a blog post on this matter and was asked to post it to this
mailing list.

Kind regards,
hrxi
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: standards-unsubscr...@xmpp.org
_______________________________________________

Reply via email to