enum StartFlag
{
-
+
START_FLAG_SCHEDULING = 0,
START_FLAG_PERFORMANCE_WITH_PIC = 1,
START_FLAG_PERFORMANCE_NO_PIC = 2
-
};
+GNUNET_NETWORK_STRUCT_BEGIN
struct ClientStartMessage
{
struct RequestAddressMessage
{
struct GNUNET_MessageHeader header;
-
+
+ uint32_t reserved GNUNET_PACKED;
+
+ struct GNUNET_PeerIdentity peer;
+};
+
+struct ResetBackoffMessage
+{
+ struct GNUNET_MessageHeader header;
+
uint32_t reserved GNUNET_PACKED;
struct GNUNET_PeerIdentity peer;
uint32_t session_id GNUNET_PACKED;
/* followed by:
- - struct GNUNET_ATS_Information [ats_count];
- - char address[address_length]
- - char plugin_name[plugin_name_length] (including '\0'-termination).
- */
+ * - struct GNUNET_ATS_Information [ats_count];
+ * - char address[address_length]
+ * - char plugin_name[plugin_name_length] (including '\0'-termination).
+ */
+
+};
+
+struct AddressUseMessage
+{
+ struct GNUNET_MessageHeader header;
+
+ struct GNUNET_PeerIdentity peer;
+
+ uint16_t in_use GNUNET_PACKED;
+
+ uint16_t address_length GNUNET_PACKED;
+
+ uint16_t plugin_name_length GNUNET_PACKED;
+
+ uint32_t session_id GNUNET_PACKED;
+
+ /* followed by:
+ * - char address[address_length]
+ * - char plugin_name[plugin_name_length] (including '\0'-termination).
+ */
};
uint32_t session_id GNUNET_PACKED;
/* followed by:
- - char address[address_length]
- - char plugin_name[plugin_name_length] (including '\0'-termination).
- */
+ * - char address[address_length]
+ * - char plugin_name[plugin_name_length] (including '\0'-termination).
+ */
};
uint32_t session_id GNUNET_PACKED;
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
-
+
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
/* followed by:
- - struct GNUNET_ATS_Information [ats_count];
- - char address[address_length]
- - char plugin_name[plugin_name_length] (including '\0'-termination).
- */
+ * - struct GNUNET_ATS_Information [ats_count];
+ * - char address[address_length]
+ * - char plugin_name[plugin_name_length] (including '\0'-termination).
+ */
};
uint32_t ats_count GNUNET_PACKED;
+ uint32_t address_active GNUNET_PACKED;
+
+ uint32_t id GNUNET_PACKED;
+
struct GNUNET_PeerIdentity peer;
uint16_t address_length GNUNET_PACKED;
uint16_t plugin_name_length GNUNET_PACKED;
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
-
+
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
- /* followed by:
- - struct GNUNET_ATS_Information [ats_count];
- - char address[address_length]
- - char plugin_name[plugin_name_length] (including '\0'-termination).
- */
+ /* followed by:
+ * - struct GNUNET_ATS_Information [ats_count];
+ * - char address[address_length]
+ * - char plugin_name[plugin_name_length] (including '\0'-termination).
+ */
};
+struct AddressListRequestMessage
+{
+ struct GNUNET_MessageHeader header;
+
+ uint32_t id GNUNET_PACKED;
+
+ int32_t all GNUNET_PACKED;
+
+ struct GNUNET_PeerIdentity peer;
+};
+
+
struct ReservationRequestMessage
{
struct GNUNET_MessageHeader header;
struct GNUNET_TIME_RelativeNBO res_delay;
};
-
struct PreferenceInformation
{
uint32_t preference_kind GNUNET_PACKED;
float preference_value GNUNET_PACKED;
-
+
};
struct GNUNET_PeerIdentity peer;
- /* followed by 'num_preferences'
- struct PreferenceInformation values */
+ /* followed by 'num_preferences'
+ * struct PreferenceInformation values */
};
+/**
+ * Message containing application feedback for a peer
+ */
+struct FeedbackPreferenceMessage
+{
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Number of feedback values included
+ */
+ uint32_t num_feedback GNUNET_PACKED;
+
+ /**
+ * Relative time describing for which time interval this feedback is
+ */
+ struct GNUNET_TIME_RelativeNBO scope;
+
+ /**
+ * Peer this feedback is for
+ */
+ struct GNUNET_PeerIdentity peer;
+
+ /* followed by 'num_feedback'
+ * struct PreferenceInformation values */
+};
+
+GNUNET_NETWORK_STRUCT_END
+
+
#endif