aboutsummaryrefslogtreecommitdiff
path: root/src/org/gnunet/core/NotifyInboundTrafficMessage.java
blob: bff19d5078600c147d42fc52e80daa8151a98791 (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.core;

import org.gnunet.construct.*;
import org.gnunet.util.ATSInformation;
import org.gnunet.util.GnunetMessage;
import org.gnunet.util.PeerIdentity;


@UnionCase(70)
public class NotifyInboundTrafficMessage implements GnunetMessage.Body {
    /**
     * Number of ATS key-value pairs that follow this struct
     * (excluding the 0-terminator).
     */
    @UInt32
    public long ats_count;

    /**
     * Identity of the receiver or sender.
     */
    @NestedMessage
    public PeerIdentity peer;

    @VariableSizeArray(lengthField = "ats_count")
    public ATSInformation[] atsRest;

    @NestedMessage(newFrame = true)
    public GnunetMessage.Header payloadHeader;

    @Union(tag = "payloadHeader.messageType", optional = true)
    public GnunetMessage.Body payloadBody;
}