diff options
author | Florian Dold <florian.dold@gmail.com> | 2014-06-04 18:07:22 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2014-06-04 18:07:22 +0000 |
commit | 569b0812112db3f4e03306f885ded361d47b4ba9 (patch) | |
tree | d34cecb09a1da9cd2f566dcc41402b9494305875 /src/main/java/org/gnunet/cadet/RejectMessage.java | |
parent | 0f0e3cd84e2903395f83478ad85951d08024d630 (diff) | |
download | gnunet-java-569b0812112db3f4e03306f885ded361d47b4ba9.tar.gz gnunet-java-569b0812112db3f4e03306f885ded361d47b4ba9.zip |
move package from mesh to cadet
Diffstat (limited to 'src/main/java/org/gnunet/cadet/RejectMessage.java')
-rw-r--r-- | src/main/java/org/gnunet/cadet/RejectMessage.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/main/java/org/gnunet/cadet/RejectMessage.java b/src/main/java/org/gnunet/cadet/RejectMessage.java new file mode 100644 index 0000000..aaf63c7 --- /dev/null +++ b/src/main/java/org/gnunet/cadet/RejectMessage.java | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | (C) 2014 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 | |||
21 | package org.gnunet.mesh; | ||
22 | |||
23 | import org.gnunet.construct.FixedSizeIntegerArray; | ||
24 | import org.gnunet.construct.UInt32; | ||
25 | import org.gnunet.construct.UnionCase; | ||
26 | import org.gnunet.util.GnunetMessage; | ||
27 | |||
28 | /** | ||
29 | * Message sent by the server to indicate that a tunnel could not | ||
30 | * be created. | ||
31 | * | ||
32 | * (GNUNET_MESSAGE_TYPE_MESH_CHANNEL_NACK) | ||
33 | * | ||
34 | * @author Florian Dold | ||
35 | */ | ||
36 | @UnionCase(276) | ||
37 | public class RejectMessage implements GnunetMessage.Body { | ||
38 | @UInt32 | ||
39 | public long tunnelId; | ||
40 | |||
41 | @FixedSizeIntegerArray(bitSize = 8, signed = false, length = 32) | ||
42 | public byte[] reserved; | ||
43 | |||
44 | @UInt32 | ||
45 | public int port; | ||
46 | |||
47 | @UInt32 | ||
48 | public int opt; | ||
49 | } | ||