Jabber-Net and adding <iq> feature query (for Realjabber at realjabber.org)

67 views
Skip to first unread message

Mark Rejhon

unread,
Mar 2, 2012, 11:27:28 AM3/2/12
to jabber-net
Hello,

I've written an open-source Jabber-NET client, called RealJabber at
http://www.realjabber.org .... (it has a mode where text is
transmitted live while you type -- real time text based on
http://xmpp.org/extensions/xep-0301.html )

I need to update my prototype software with some requirement (section
5 of xep-0301)
Basically I need to automatically respond to:

<iq from='ro...@montague.lit/orchard'
id='disco1'
to='jul...@capulet.lit/balcony'
type='get'>
<query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>

With the following response:

<iq from='jul...@capulet.lit/balcony'
id='disco1'
to='ro...@montague.lit/orchard'
type='result'>
<query xmlns='http://jabber.org/protocol/disco#info'>
<feature var='urn:xmpp:rtt:0'/>
</query>
</iq>

What is the easiest way to do this in jabber-net? I have been unable
to find good documentation on how to do this properly with jabber-net.

Thanks!
Mark Rejhon

Joe Hildebrand

unread,
Mar 2, 2012, 5:08:21 PM3/2/12
to jabbe...@googlegroups.com
I think if you drop a CapsManager on your design surface, and add "urn:xmpp:rtt:0" to the features, it will do most of what you need.

-- 
Joe Hildebrand



--
You received this message because you are subscribed to the Google Groups "jabber-net" group.
To post to this group, send email to jabbe...@googlegroups.com.
To unsubscribe from this group, send email to jabber-net+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jabber-net?hl=en.


Reply all
Reply to author
Forward
0 new messages