fix codesonar finding 2287.9399
[oweals/gnunet.git] / src / multicast / multicast.h
index 95beb7c3a46a4f26e202e5335a54caf576d933c7..e95299a5e4ed17deb113dae0a637a3b684d20ab8 100644 (file)
@@ -2,20 +2,18 @@
      This file is part of GNUnet.
      Copyright (C) 2012, 2013 GNUnet e.V.
 
-     GNUnet is free software; you can redistribute it and/or modify
-     it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 3, or (at your
-     option) any later version.
+     GNUnet is free software: you can redistribute it and/or modify it
+     under the terms of the GNU Affero General Public License as published
+     by the Free Software Foundation, either version 3 of the License,
+     or (at your option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-     General Public License for more details.
-
-     You should have received a copy of the GNU General Public License
-     along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-     Boston, MA 02110-1301, USA.
+     Affero General Public License for more details.
+    
+     You should have received a copy of the GNU Affero General Public License
+     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 /**
@@ -273,7 +271,6 @@ struct MulticastOriginStartMessage
    * we resume operating * a group.
    */
   uint64_t max_fragment_id;
-
 };
 
 
@@ -298,131 +295,6 @@ struct MulticastMemberJoinMessage
 };
 
 
-#if NOT_USED
-/**
- * Message sent from the client to the service to broadcast to all group
- * members.
- */
-struct MulticastBroadcastMessage
-{
-
-  /**
-   *
-   */
-  struct GNUNET_MessageHeader header;
-
-  /**
-   * #GNUNET_OK normally, #GNUNET_SYSERR if the origin aborted the
-   * transmission.
-   */
-  int32_t status;
-
-  /**
-   * Message ID.
-   */
-  uint64_t message_id;
-
-  /**
-   * Group generation.
-   */
-  uint64_t group_generation;
-
-  /**
-   * Total message size.
-   */
-  uint64_t total_size;
-
-};
-
-
-/**
- * Message sent from the client to the service to join a multicast group.
- */
-struct MulticastJoinMessage
-{
-
-  /**
-   *
-   */
-  struct GNUNET_MessageHeader header;
-
-  /**
-   * Number of relays we (think) we already know about.
-   */
-  uint32_t relay_count;
-
-  /**
-   * Public non-ephemeral key of the mutlicast group.
-   */
-  struct GNUNET_CRYPTO_EddsaPublicKey group_pub_key;
-
-  /**
-   * Our private key for the group.
-   */
-  struct GNUNET_CRYPTO_EcdsaPrivateKey member_key;
-
-  /* followed by 'relay_count' `struct GNUNET_PeerIdentity`s */
-
-};
-
-
-
-/**
- * Message sent from the client to the service to unicast to the group origin.
- */
-struct MulticastUnicastToOriginMessage
-{
-
-  /**
-   *
-   */
-  struct GNUNET_MessageHeader header;
-
-  /**
-   * Reserved (always 0).
-   */
-  uint32_t reserved;
-
-  /**
-   * Message ID.
-   */
-  uint64_t message_id;
-
-  /**
-   * Total message size.
-   */
-  uint64_t total_size;
-
-  /* followed by payload */
-
-};
-
-
-/**
- * Message sent from the client to the service to
- * cancel unicast to the group origin.
- */
-struct MulticastUnicastToOriginCancelMessage
-{
-
-  /**
-   *
-   */
-  struct GNUNET_MessageHeader header;
-
-  /**
-   * Reserved (always 0).
-   */
-  uint32_t reserved;
-
-  /**
-   * Message ID.
-   */
-  uint64_t message_id;
-
-};
-#endif // NOT_USED
-
 GNUNET_NETWORK_STRUCT_END
 
 #endif