aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/stanzas
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-11 21:13:09 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-11 21:13:09 +0200
commitc0e0a7086902a9d5cfbe88c4aa220abdf2ee3dde (patch)
tree0dc00906f723d0e2ad2894a711992af03ea12f21 /src/eu/siacs/conversations/xmpp/stanzas
parent51100ab48b94c55f8cce981c422e50a607f261ad (diff)
socks5 initialisation works. doesn't get activate though
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/stanzas')
-rw-r--r--src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java b/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
index 3ab3b6c3..9e288454 100644
--- a/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
+++ b/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
@@ -63,5 +63,13 @@ public class IqPacket extends AbstractStanza {
return 1000;
}
}
+
+ public IqPacket generateRespone(int type) {
+ IqPacket packet = new IqPacket(type);
+ packet.setFrom(this.getTo());
+ packet.setTo(this.getFrom());
+ packet.setId(this.getId());
+ return packet;
+ }
}