aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h32
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 */
1114struct 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
1112GNUNET_NETWORK_STRUCT_END 1144GNUNET_NETWORK_STRUCT_END