aboutsummaryrefslogtreecommitdiff
path: root/src/org/gnunet/core/ConnectNotifyMessage.java
blob: 9ee587952719d3ffed74e9a3ac994aaa57f8c883 (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
33
34
35
36
37
package org.gnunet.core;

import org.gnunet.construct.ByteFill;
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;

/**
 * Message sent by the service to clients to notify them
 * about a peer connecting.
 */
@UnionCase(67)
public class ConnectNotifyMessage implements GnunetMessage.Body {
    /**
     * Number of ATS key-value pairs that follow this struct
     * (excluding the 0-terminator).
     */
    @UInt32
    public long atsCount;

    /**
     * Identity of the connecting peer.
     */
    @NestedMessage
    public PeerIdentity peer;


    @ByteFill
    public byte[] atsInfo;


    //@FillWith
    //public ATSInformation[] atsInformation;

}