/*
This file is part of GNUnet.
- (C) 2012, 2013 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2012-2014 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
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., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
* @file set/set.h
#include "platform.h"
#include "gnunet_common.h"
+#include "gnunet_set_service.h"
GNUNET_NETWORK_STRUCT_BEGIN
/**
* Id of our set to evaluate, chosen implicitly by the client when it
- * calls #GNUNE_SET_commit().
+ * calls #GNUNET_SET_commit().
*/
uint32_t request_id GNUNET_PACKED;
struct GNUNET_SET_IterResponseMessage
{
/**
- * Type: #GNUNET_MESSAGE_TYPE_SET_ITER_RESPONSE
+ * Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT
*/
struct GNUNET_MessageHeader header;
uint32_t send_more;
};
+
+/**
+ * Server responds to a lazy copy request.
+ */
+struct GNUNET_SET_CopyLazyResponseMessage
+{
+ /**
+ * Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Temporary name for the copied set.
+ */
+ uint32_t cookie;
+};
+
+
+/**
+ * Client connects to a lazily copied set.
+ */
+struct GNUNET_SET_CopyLazyConnectMessage
+{
+ /**
+ * Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Temporary name for the copied set.
+ */
+ uint32_t cookie;
+};
+
+
GNUNET_NETWORK_STRUCT_END
#endif