xmppfile-transferinstant-messagingpidginlibpurple

File transfer using libpurple


I'm kind of stuck trying to code an example of file transfer using libpurple.

My first try was to reuse the nullclient example from the libpurple/examples source directory and call serv_send_file. That seems to compile and execute fine but then nothing happens in the side of the receiver (he doesn't get the file transfer request).

Pointers and/or partial code (in any language) are appreciated.


Solution

  • Answering to myself. I was making a bunch of mistakes, corrected those and uploaded a full working example here. Things I've learned from this:

    Hope this helps other people that are, as me, learning libpurple.