Since direct connection scenario within XEP-0065 involves the following steps, is there any code in the mina/vysper codebase that more or less does these steps, so I can quickly get a feel of the data transfer operation ?
1. Initiator sends IQ-set to Target specifying the full JID and network address of StreamHost/Initiator as well as the StreamID (SID) of the proposed bytestream. 2. Target opens a TCP socket to the specified network address. 3. Target requests connection via SOCKS5, with the DST.ADDR and DST.PORT parameters set to the values defined below. 4. StreamHost/Initiator sends acknowledgement of successful connection to Target via SOCKS5. 5. Target sends IQ-result to Initiator, preserving the 'id' of the initial IQ-set. 6. StreamHost/Initiator activates the bytestream. 7. Initiator and Target may begin using the bytestream. Also, is XEP-0138 (zlib compression) also implemented ? Thanks. > Date: Thu, 29 Sep 2011 17:09:57 +0200 > Subject: Re: XEP-0065 direct connection > From: nik...@protocol7.com > To: users@mina.apache.org > > On Thu, Sep 29, 2011 at 3:45 AM, Amit Basu <alt_a...@hotmail.com> wrote: > > Which test class in mina/vysper serves as an example for direct connection, > > not mediated connection. I am looking for some sample code to try XEP-0065 > > direct connection. > > Since Vysper is an XMPP server, and servers are not involved in direct > connections (only clients), we do not have any test for direct > connections. > > /niklas