diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-06 13:24:20 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-06 13:24:20 +0000 |
commit | 56389a7d277b05c9c2968b7ebd529a12f8be15eb (patch) | |
tree | 693ef3440c9db0a2c0662d321f91fcea166176fc /src/transport/transport.h | |
parent | 88d047688f2aa11526316fdeaedb4c607bba3cf1 (diff) | |
download | gnunet-56389a7d277b05c9c2968b7ebd529a12f8be15eb.tar.gz gnunet-56389a7d277b05c9c2968b7ebd529a12f8be15eb.zip |
- implementation for mantis 0002485
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index e0b881970..3cca8e268 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -56,6 +56,26 @@ | |||
56 | */ | 56 | */ |
57 | #define CONNECTED_LATENCY_EVALUATION_MAX_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1) | 57 | #define CONNECTED_LATENCY_EVALUATION_MAX_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1) |
58 | 58 | ||
59 | /** | ||
60 | * Similiar to GNUNET_TRANSPORT_NotifyDisconnect but in and out quotas are | ||
61 | * included here. These values are not required outside transport_api | ||
62 | * | ||
63 | * @param cls closure | ||
64 | * @param peer the peer that connected | ||
65 | * @param ats performance data | ||
66 | * @param ats_count number of entries in ats (excluding 0-termination) | ||
67 | * @param bandwidth_in inbound bandwidth in NBO | ||
68 | * @param bandwidth_out outbound bandwidth in NBO | ||
69 | * | ||
70 | */ | ||
71 | |||
72 | typedef void (*NotifyConnect) (void *cls, | ||
73 | const struct GNUNET_PeerIdentity *peer, | ||
74 | const struct GNUNET_ATS_Information *ats, | ||
75 | uint32_t ats_count, | ||
76 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | ||
77 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); | ||
78 | |||
59 | GNUNET_NETWORK_STRUCT_BEGIN | 79 | GNUNET_NETWORK_STRUCT_BEGIN |
60 | 80 | ||
61 | /** | 81 | /** |
@@ -109,6 +129,16 @@ struct ConnectInfoMessage | |||
109 | * Identity of the new neighbour. | 129 | * Identity of the new neighbour. |
110 | */ | 130 | */ |
111 | struct GNUNET_PeerIdentity id; | 131 | struct GNUNET_PeerIdentity id; |
132 | |||
133 | /** | ||
134 | * Current inbound quota for this peer | ||
135 | */ | ||
136 | struct GNUNET_BANDWIDTH_Value32NBO quota_in; | ||
137 | |||
138 | /** | ||
139 | * Current outbound quota for this peer | ||
140 | */ | ||
141 | struct GNUNET_BANDWIDTH_Value32NBO quota_out; | ||
112 | }; | 142 | }; |
113 | 143 | ||
114 | 144 | ||