aboutsummaryrefslogtreecommitdiff
path: root/src/org/gnunet/transport/StartMessage.java
blob: 2169565c9ef93de1d7ab896c99e1d10942c66b39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.gnunet.transport;

import org.gnunet.construct.NestedMessage;
import org.gnunet.construct.UInt32;
import org.gnunet.construct.UnionCase;
import org.gnunet.util.GnunetMessage;
import org.gnunet.util.PeerIdentity;

/**
 * ...
 *
 * @author Florian Dold
 */
@UnionCase(360)
public class StartMessage implements GnunetMessage.Body {
    /**
     * 0: no options
     * 1: The 'self' field should be checked
     * 2: this client is interested in payload traffic
     */
    @UInt32
    public int options;

    /**
     * Identity we think we have.  If it does not match, the
     * receiver should print out an error message and disconnect.
     */
    @NestedMessage
    public PeerIdentity self;


}