diff options
Diffstat (limited to 'src/org/gnunet/transport/StartMessage.java')
-rw-r--r-- | src/org/gnunet/transport/StartMessage.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/org/gnunet/transport/StartMessage.java b/src/org/gnunet/transport/StartMessage.java new file mode 100644 index 0000000..2169565 --- /dev/null +++ b/src/org/gnunet/transport/StartMessage.java | |||
@@ -0,0 +1,32 @@ | |||
1 | package org.gnunet.transport; | ||
2 | |||
3 | import org.gnunet.construct.NestedMessage; | ||
4 | import org.gnunet.construct.UInt32; | ||
5 | import org.gnunet.construct.UnionCase; | ||
6 | import org.gnunet.util.GnunetMessage; | ||
7 | import org.gnunet.util.PeerIdentity; | ||
8 | |||
9 | /** | ||
10 | * ... | ||
11 | * | ||
12 | * @author Florian Dold | ||
13 | */ | ||
14 | @UnionCase(360) | ||
15 | public class StartMessage implements GnunetMessage.Body { | ||
16 | /** | ||
17 | * 0: no options | ||
18 | * 1: The 'self' field should be checked | ||
19 | * 2: this client is interested in payload traffic | ||
20 | */ | ||
21 | @UInt32 | ||
22 | public int options; | ||
23 | |||
24 | /** | ||
25 | * Identity we think we have. If it does not match, the | ||
26 | * receiver should print out an error message and disconnect. | ||
27 | */ | ||
28 | @NestedMessage | ||
29 | public PeerIdentity self; | ||
30 | |||
31 | |||
32 | } | ||