diff options
Diffstat (limited to 'src/include/gnunet_service_lib.h')
-rw-r--r-- | src/include/gnunet_service_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index 11dcff35e..6a0ae0add 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -159,6 +159,17 @@ GNUNET_SERVICE_get_server (struct GNUNET_SERVICE_Context *ctx); | |||
159 | 159 | ||
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Get the NULL-terminated array of listen sockets for this service. | ||
163 | * | ||
164 | * @param ctx service context to query | ||
165 | * @return NULL if there are no listen sockets, otherwise NULL-terminated | ||
166 | * array of listen sockets. | ||
167 | */ | ||
168 | struct GNUNET_NETWORK_Handle ** | ||
169 | GNUNET_SERVICE_get_listen_sockets (struct GNUNET_SERVICE_Context *ctx); | ||
170 | |||
171 | |||
172 | /** | ||
162 | * Stop a service that was started with #GNUNET_SERVICE_start. | 173 | * Stop a service that was started with #GNUNET_SERVICE_start. |
163 | * | 174 | * |
164 | * @param sctx the service context returned from the start function | 175 | * @param sctx the service context returned from the start function |