BTW, I’'m getting the following strange behavior while tunneling my data thru XMPP (using Smack).
On the sending side:[/u]
OCPacketExtension extension = new OCPacketExtension(t);
Message m = new Message(jid);
m.addExtension(extension);
log.debug("sending "+m.toXML());
synchronized (connection) {
connection.sendPacket(m);
}[/i]
sending <n1:post n1:author=“Log F” n1:branch=“oc:///TextbyE.text” n1:distance=“1.0” n1:rdistance=“1.0” n1:ttlremaining=“9223372036853751807” xmlns:n1=“urn:oc:token”><n2:text n2:date=“2006.01.28 17:13:10 YEKT” xmlns:n2=“urn:oc:text”>just a test</n2:text></n1:post>
On the receiving side:[/u]
public class XMPPContact implements PacketListener …
public void processPacket(Packet packet) {
log.debug("got "+packet.toXML());
Iterator i = packet.getExtensions();
while (i.hasNext()) {
… etc etc[/i]
got <n1:post n1:author=“Log F” n1:branch=“oc:/TextbyE.text” n1:distance=“1.0” n1:rdistance=“1.0” n1:ttlremaining=“9223372036853388807” xmlns:n1=“urn:oc:token”><n2:n2:text n2:n2:date=“2006.01.28 17:13:10 YEKT” xmlns:xmlns:n1=“urn:oc:token” xmlns:xmlns:n2=“urn:oc:text” xmlns:xmlns:stream=“http://etherx.jabber.org/streams” xmlns:n2=“urn:oc:text”>just a test</n2:n2:text></n1:post>
Sorry for not looking into Smack sources…
Is it bug or some expected behavior?