GNUnet 0.22.1
communicator.h
Go to the documentation of this file.
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2009-2014 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your 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 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20
26#ifndef COMMUNICATOR_H
27#define COMMUNICAOTR_H
28
29#include "gnunet_util_lib.h"
30#include "gnunet_protocols.h"
31
33
45{
50
55
61
67};
68
69
93{
98
105
110
117
122
131 /* uint64_t msg_selective_ack_field[]; */
132};
133
134
136
137/* end of communicator.h */
138#endif
Constants for network protocols.
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
A 512-bit hashcode.
Header for all communications.
Time for absolute time used by GNUnet, in microseconds and in network byte order.
Time for relative time used by GNUnet, in microseconds and in network byte order.
Message used to tell a communicator about the receiver's flow control limits and to acknowledge recei...
Definition: communicator.h:93
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_FC_LIMITS.
Definition: communicator.h:97
uint64_t bytes_window_size
Maximum number of payload bytes beyond the acknowledged number of bytes can still be transmitted with...
Definition: communicator.h:116
uint32_t msg_window_size
Maximum number of messages beyond the acknowledged message number that can still be transmitted concu...
Definition: communicator.h:104
uint64_t msg_cummulative_ack
Up to which message number were all messages received.
Definition: communicator.h:109
uint64_t bytes_cummulative_ack
Cumulative acknowledgement for number of bytes received.
Definition: communicator.h:121
Message used to tell a communicator about a successful key exchange.
Definition: communicator.h:45
struct GNUNET_TIME_RelativeNBO validity
How long does the receiver of the KX believe that the address on which the KX was received will conti...
Definition: communicator.h:60
struct GNUNET_HashCode token
Hash of the shared secret.
Definition: communicator.h:66
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_KX_CONFIRMATION.
Definition: communicator.h:49
struct GNUNET_TIME_AbsoluteNBO monotonic_time
Timestamp from the original sender which identifies the original KX.
Definition: communicator.h:54