Commit Graph

3 Commits (4c69352f19d6ac8ec3026d6f97759cf97f8b29b0)

Author SHA1 Message Date
Michael Santos da5fecd041 makefile: static target, link against libresolv
libresolv is required for base64 encoding.
9 years ago
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.
10 years ago
Michael Santos 3d79e9fda8 Forward stdin over XMPP 10 years ago