Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Creating an element without namespace
Avatar
simons #1
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Subject: Sock5 ByteStreams (JEP0065) - Initiation of Interactions
I am attempting to add support for the following message using the "Creating your own packet types" document.  I could not understand from the documentation how to add the "streamhost" element as it does not have namespace.

Thanks in advance for your advice,

Simon

Example 11. Initiation of Interaction

<iq type='set'
    from='initiator@host1/foo'
    to='target@host2/bar'
    id='initiate'>
  <query xmlns='http://jabber.org/protocol/bytestreams'
         sid='mySID'
     mode='tcp'>
    <streamhost
        jid='initiator@host1/foo'
        host='192.168.4.1'
        port='5086'/>
    <streamhost
        jid='proxy.host3'
        host='24.24.24.1'
        zeroconf='_jabber.bytestreams'/>
  </query>
</iq>
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i added the streamhost class to agsXMPP.protocol.extensions.bytestreams. In commited the code to SVN. I will add the whole JEP-0065 today.
It would be very cool if we could put together a bytestreams sample and add it to the MiniClient.

Alex
Alexander Gnauck
AG-Software
Avatar
Alex #3
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i added the whole JEP-0065 bytestreams now.
The code is commited to SVN.

Alex
Alexander Gnauck
AG-Software
Avatar
simons #4
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Thanks,

Looking at this now, I will let you know how I get on later.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS