aboutsummaryrefslogtreecommitdiff
path: root/src/org/gnunet/mesh/TunnelCreateMessage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/gnunet/mesh/TunnelCreateMessage.java')
-rw-r--r--src/org/gnunet/mesh/TunnelCreateMessage.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/org/gnunet/mesh/TunnelCreateMessage.java b/src/org/gnunet/mesh/TunnelCreateMessage.java
index 96d821c..7b63bc6 100644
--- a/src/org/gnunet/mesh/TunnelCreateMessage.java
+++ b/src/org/gnunet/mesh/TunnelCreateMessage.java
@@ -1,11 +1,17 @@
1package org.gnunet.mesh; 1package org.gnunet.mesh;
2 2
3import org.gnunet.construct.NestedMessage;
3import org.gnunet.construct.UInt32; 4import org.gnunet.construct.UInt32;
4import org.gnunet.construct.UnionCase; 5import org.gnunet.construct.UnionCase;
5import org.gnunet.util.GnunetMessage; 6import org.gnunet.util.GnunetMessage;
7import org.gnunet.util.PeerIdentity;
6 8
7/** 9/**
8 * ... 10 * Message used to
11 * a) request the service to create a new tunnel with the given tunnel id
12 * b) notify the client of a newly created tunnel
13 *
14 * todo: this is bad design, split into two messages in the C code!
9 * 15 *
10 * @author Florian Dold 16 * @author Florian Dold
11 */ 17 */
@@ -13,4 +19,10 @@ import org.gnunet.util.GnunetMessage;
13public class TunnelCreateMessage implements GnunetMessage.Body { 19public class TunnelCreateMessage implements GnunetMessage.Body {
14 @UInt32 20 @UInt32
15 public int tunnel_id; 21 public int tunnel_id;
22
23 /**
24 * Only present if sent from server to client (purpose b)
25 */
26 @NestedMessage(optional = true)
27 public PeerIdentity otherEnd;
16} 28}