From 2a51624aec1b1a5bc464853c5446f628fa3b99f0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 22 Jan 2015 21:32:12 +0000 Subject: simplifying IPC for address destruction --- src/ats/ats.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/ats/ats.h') diff --git a/src/ats/ats.h b/src/ats/ats.h index fd66013f4..5e5d16a90 100644 --- a/src/ats/ats.h +++ b/src/ats/ats.h @@ -192,26 +192,29 @@ struct AddressUseMessage }; +/** + * Message sent by ATS client to ATS service when an address + * was destroyed and must thus henceforth no longer be considered + * for scheduling. + */ struct AddressDestroyedMessage { + /** + * Type is #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED. + */ struct GNUNET_MessageHeader header; - uint32_t reserved GNUNET_PACKED; - - struct GNUNET_PeerIdentity peer; - - uint16_t address_length GNUNET_PACKED; - - uint16_t plugin_name_length GNUNET_PACKED; - + /** + * Internal number this client uses to refer to this address. + */ uint32_t session_id GNUNET_PACKED; - uint32_t address_local_info GNUNET_PACKED; - - /* followed by: - * - char address[address_length] - * - char plugin_name[plugin_name_length] (including '\0'-termination). + /** + * Which peer is this about? (Technically redundant, as the + * @e session_id should be sufficient, but enables ATS service + * to find the session faster). */ + struct GNUNET_PeerIdentity peer; }; -- cgit v1.2.3