diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-03 21:25:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-03 21:26:08 +0200 |
commit | 670ebb20b9570120df1021e467b575a212743125 (patch) | |
tree | e94b1e8e2bb52da66b426c861f34f8e950dcf8ed /src/transport/transport.h | |
parent | f13792325fc3f7e49ec2b0880eb4f1aa978e00d7 (diff) | |
download | gnunet-670ebb20b9570120df1021e467b575a212743125.tar.gz gnunet-670ebb20b9570120df1021e467b575a212743125.zip |
allow applications expressing connection preferences directly to TNG, collect HELLOs from PEERSTORE for expressed prefs
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index c0e02c3d9..b231ea8ae 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -1107,6 +1107,38 @@ struct GNUNET_TRANSPORT_AddressToVerify | |||
1107 | }; | 1107 | }; |
1108 | 1108 | ||
1109 | 1109 | ||
1110 | /** | ||
1111 | * Application client to TRANSPORT service: we would like to have | ||
1112 | * address suggestions for this peer. | ||
1113 | */ | ||
1114 | struct ExpressPreferenceMessage | ||
1115 | { | ||
1116 | /** | ||
1117 | * Type is #GNUNET_MESSAGE_TYPE_TRANSPORT_SUGGEST or | ||
1118 | * #GNUNET_MESSAGE_TYPE_TRANSPORT_SUGGEST_CANCEL to stop | ||
1119 | * suggestions. | ||
1120 | */ | ||
1121 | struct GNUNET_MessageHeader header; | ||
1122 | |||
1123 | /** | ||
1124 | * What type of performance preference does the client have? | ||
1125 | * A `enum GNUNET_MQ_PreferenceKind` in NBO. | ||
1126 | */ | ||
1127 | uint32_t pk GNUNET_PACKED; | ||
1128 | |||
1129 | /** | ||
1130 | * Peer to get address suggestions for. | ||
1131 | */ | ||
1132 | struct GNUNET_PeerIdentity peer; | ||
1133 | |||
1134 | /** | ||
1135 | * How much bandwidth in bytes/second does the application expect? | ||
1136 | */ | ||
1137 | struct GNUNET_BANDWIDTH_Value32NBO bw; | ||
1138 | |||
1139 | }; | ||
1140 | |||
1141 | |||
1110 | #endif | 1142 | #endif |
1111 | 1143 | ||
1112 | GNUNET_NETWORK_STRUCT_END | 1144 | GNUNET_NETWORK_STRUCT_END |