xmpp unable to receive / transfer files using gloox library -
xmpp unable to receive / transfer files using gloox library -
i'm writing xmpp
client ios, didn't manage compile swiften library objective-c, went gloox, implementing single , multiuser-chat, far good.
now i'm trying implement file transfer functionality no success. gloox
has pretty basic samples si file transfer
(i guess protocol bit deprecated, though). given these lines
// should obtain using disco, really: // f->addstreamhost( jid( "proxy.jabber.org" ), "208.245.212.98", 7777 );
i'm guessing need utilize disco
service find out stream host, not sure how proceed. i'm calling.-
j->disco()->getdiscoinfo(j->jid(), "", this, 0);
which calling
virtual void handlediscoinfo( const jid& /*iq*/, const disco::info& info, int /*context*/ )
but list of enabled features.
when seek send file adium
client, complains of client "not connected" (it's connected indeed, , has text conversations adium
, guessing error means gloox
not correctly listening file transfer requests), no callback getting called neither. besides, file transfer working on ejabberd
server, file transfer between adium , imessages working fine.
tried utilize jingle plugin (which supposed supported), didn't find working example. here main code jingle
file transfer initialization.-
m_sm = new sessionmanager(j, this); m_sm->registerplugin(new filetransfer(filetransfer::offer, *new filetransfer::filelist()));
anyone knows of working illustration of gloox jingle integration? any tip on right direction much appreciated.
xmpp gloox jingle
Comments
Post a Comment