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.

anyone succeeded configuring si file transfer on gloox? how should disco service used find stream host configuration?

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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -