projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of gnunet.org:gnunet
[oweals/gnunet.git]
/
src
/
include
/
gnunet_set_service.h
diff --git
a/src/include/gnunet_set_service.h
b/src/include/gnunet_set_service.h
index 6e822d82e75b682a89a30158bbdda4b79e5b5afb..ac54153e16b8364c7701ab9d2edb450e8b37257b 100644
(file)
--- a/
src/include/gnunet_set_service.h
+++ b/
src/include/gnunet_set_service.h
@@
-2,20
+2,20
@@
This file is part of GNUnet
Copyright (C) 2013, 2014 GNUnet e.V.
This file is part of GNUnet
Copyright (C) 2013, 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
- 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,
+ o
r (at your o
ption) 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
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.
+ 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/>.
- 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.
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
*/
/**
@@
-452,6
+452,8
@@
GNUNET_SET_listen (const struct GNUNET_CONFIGURATION_Handle *cfg,
/**
* Cancel the given listen operation. After calling cancel, the
* listen callback for this listen handle will not be called again.
/**
* Cancel the given listen operation. After calling cancel, the
* listen callback for this listen handle will not be called again.
+ * Note that cancelling a listen operation will automatically reject
+ * all operations that have not yet been accepted.
*
* @param lh handle for the listen operation
*/
*
* @param lh handle for the listen operation
*/
@@
-528,6
+530,7
@@
GNUNET_SET_iterate (struct GNUNET_SET_Handle *set,
GNUNET_SET_ElementIterator iter,
void *iter_cls);
GNUNET_SET_ElementIterator iter,
void *iter_cls);
+
/**
* Stop iteration over all elements in the given set. Can only
* be called before the iteration has "naturally" completed its
/**
* Stop iteration over all elements in the given set. Can only
* be called before the iteration has "naturally" completed its
@@
-538,6
+541,7
@@
GNUNET_SET_iterate (struct GNUNET_SET_Handle *set,
void
GNUNET_SET_iterate_cancel (struct GNUNET_SET_Handle *set);
void
GNUNET_SET_iterate_cancel (struct GNUNET_SET_Handle *set);
+
/**
* Create a copy of an element. The copy
* must be GNUNET_free-d by the caller.
/**
* Create a copy of an element. The copy
* must be GNUNET_free-d by the caller.
@@
-548,6
+552,7
@@
GNUNET_SET_iterate_cancel (struct GNUNET_SET_Handle *set);
struct GNUNET_SET_Element *
GNUNET_SET_element_dup (const struct GNUNET_SET_Element *element);
struct GNUNET_SET_Element *
GNUNET_SET_element_dup (const struct GNUNET_SET_Element *element);
+
/**
* Hash a set element.
*
/**
* Hash a set element.
*
@@
-556,7
+561,8
@@
GNUNET_SET_element_dup (const struct GNUNET_SET_Element *element);
* should be stored
*/
void
* should be stored
*/
void
-GNUNET_SET_element_hash (const struct GNUNET_SET_Element *element, struct GNUNET_HashCode *ret_hash);
+GNUNET_SET_element_hash (const struct GNUNET_SET_Element *element,
+ struct GNUNET_HashCode *ret_hash);
#if 0 /* keep Emacsens' auto-indent happy */
#if 0 /* keep Emacsens' auto-indent happy */