2
0
mirror of https://github.com/msantos/xmppipe synced 2024-11-13 13:10:32 +00:00
Go to file
Michael Santos 353951298e Generate a unique ID per message
Add a ID per message. Seems to fix the duplicate messages seen with MUCs
on the Conversations android client whenever the network is switched
(e.g., from wifi to cell).

Introduce a dependency on Linux's libuuid which introduces portability
issues. However, it should be simple to add support for the BSD UUID
interface.

libuuid was used because it is a fast and simple way of generating
a unique id.  Realistically, the ID only needs to be unique within
the MUC and so could probably be replaced with an sprintf() combining
time of day, PID and a random number.
2015-05-14 06:56:58 -04:00
examples Forward stdin over XMPP 2015-05-11 15:19:35 -04:00
src Generate a unique ID per message 2015-05-14 06:56:58 -04:00
.gitignore Forward stdin over XMPP 2015-05-11 15:19:35 -04:00
Makefile Generate a unique ID per message 2015-05-14 06:56:58 -04:00