aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/gnunet/peerinfo/messages
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2014-04-08 10:00:26 +0000
committerFlorian Dold <florian.dold@gmail.com>2014-04-08 10:00:26 +0000
commitf0b4e83a0673b23eaec877f35caf95758af9a96e (patch)
treed3b904986e4129a6d49729df9f8370b6da703428 /src/main/java/org/gnunet/peerinfo/messages
parent03ae3147a0ea8aa13ab38cf204235721db3987e0 (diff)
downloadgnunet-java-f0b4e83a0673b23eaec877f35caf95758af9a96e.tar.gz
gnunet-java-f0b4e83a0673b23eaec877f35caf95758af9a96e.zip
fix rename chaos caused be IntelliJ
Diffstat (limited to 'src/main/java/org/gnunet/peerinfo/messages')
-rw-r--r--src/main/java/org/gnunet/peerinfo/messages/InfoEnd.java14
-rw-r--r--src/main/java/org/gnunet/peerinfo/messages/InfoMessage.java50
-rw-r--r--src/main/java/org/gnunet/peerinfo/messages/ListAllPeersMessage.java37
-rw-r--r--src/main/java/org/gnunet/peerinfo/messages/ListPeerMessage.java39
4 files changed, 140 insertions, 0 deletions
diff --git a/src/main/java/org/gnunet/peerinfo/messages/InfoEnd.java b/src/main/java/org/gnunet/peerinfo/messages/InfoEnd.java
new file mode 100644
index 0000000..43bb99b
--- /dev/null
+++ b/src/main/java/org/gnunet/peerinfo/messages/InfoEnd.java
@@ -0,0 +1,14 @@
1package org.gnunet.peerinfo.messages;
2
3import org.gnunet.construct.UnionCase;
4import org.gnunet.util.GnunetMessage;
5
6/**
7 * ...
8 *
9 * @author Florian Dold
10 */
11@UnionCase(333)
12public class InfoEnd implements GnunetMessage.Body {
13
14}
diff --git a/src/main/java/org/gnunet/peerinfo/messages/InfoMessage.java b/src/main/java/org/gnunet/peerinfo/messages/InfoMessage.java
new file mode 100644
index 0000000..1c3cddb
--- /dev/null
+++ b/src/main/java/org/gnunet/peerinfo/messages/InfoMessage.java
@@ -0,0 +1,50 @@
1/*
2 This file is part of GNUnet.
3 (C) 2011, 2012 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19 */
20
21package org.gnunet.peerinfo.messages;
22
23import org.gnunet.construct.NestedMessage;
24import org.gnunet.construct.UInt32;
25import org.gnunet.construct.UnionCase;
26import org.gnunet.hello.HelloMessage;
27import org.gnunet.util.GnunetMessage;
28import org.gnunet.util.PeerIdentity;
29
30/**
31 * @author Florian Dold
32 */
33@UnionCase(332)
34public class InfoMessage implements GnunetMessage.Body {
35 /**
36 * Always zero.
37 */
38 @UInt32
39 public int reserved;
40 /**
41 * About which peer are we talking here?
42 */
43 @NestedMessage
44 public PeerIdentity peerIdentity;
45 /**
46 * HELLO of the peer, null if no HELLO present.
47 */
48 @NestedMessage(optional = true)
49 public HelloMessage hello;
50}
diff --git a/src/main/java/org/gnunet/peerinfo/messages/ListAllPeersMessage.java b/src/main/java/org/gnunet/peerinfo/messages/ListAllPeersMessage.java
new file mode 100644
index 0000000..10a2149
--- /dev/null
+++ b/src/main/java/org/gnunet/peerinfo/messages/ListAllPeersMessage.java
@@ -0,0 +1,37 @@
1/*
2 This file is part of GNUnet.
3 (C) 2011, 2012 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19 */
20
21package org.gnunet.peerinfo.messages;
22
23import org.gnunet.construct.UInt32;
24import org.gnunet.construct.UnionCase;
25import org.gnunet.util.GnunetMessage;
26
27/**
28 * Message requesting a listing of all known peers,
29 * possibly restricted to the specified peer identity.
30 *
31 * @author Florian Dold
32 */
33@UnionCase(331)
34public class ListAllPeersMessage implements GnunetMessage.Body {
35 @UInt32
36 public int includeFriendOnly;
37}
diff --git a/src/main/java/org/gnunet/peerinfo/messages/ListPeerMessage.java b/src/main/java/org/gnunet/peerinfo/messages/ListPeerMessage.java
new file mode 100644
index 0000000..8a158b9
--- /dev/null
+++ b/src/main/java/org/gnunet/peerinfo/messages/ListPeerMessage.java
@@ -0,0 +1,39 @@
1/*
2 This file is part of GNUnet.
3 (C) 2011, 2012 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19 */
20
21package org.gnunet.peerinfo.messages;
22
23import org.gnunet.construct.NestedMessage;
24import org.gnunet.construct.UInt32;
25import org.gnunet.util.GnunetMessage;
26import org.gnunet.util.PeerIdentity;
27
28/**
29 * Message requesting a listing of all known peers,
30 * possibly restricted to the specified peer identity.
31 *
32 * @author Florian Dold
33 */
34public class ListPeerMessage implements GnunetMessage.Body {
35 @UInt32
36 public int reserved;
37 @NestedMessage
38 public PeerIdentity peer;
39}