aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-02 20:54:51 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-02 20:54:51 +0000
commitff2354195a8ed1ea2e9c781d7c4421742b0df4d0 (patch)
tree2cb08c47004138f88f49850b0af2e9185acb4e82 /src/util/service.c
parent75b02f33ec88d5b2db25d31a1b6fffc82290f38c (diff)
downloadgnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.tar.gz
gnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.zip
adding TCP_STEALTH support to TCP plugin
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 4e3c232f9..a97cd434f 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -142,7 +142,7 @@ struct GNUNET_SERVICE_Context
142 GNUNET_SERVICE_Main task; 142 GNUNET_SERVICE_Main task;
143 143
144 /** 144 /**
145 * Closure for task. 145 * Closure for @e task.
146 */ 146 */
147 void *task_cls; 147 void *task_cls;
148 148
@@ -1628,6 +1628,20 @@ GNUNET_SERVICE_get_server (struct GNUNET_SERVICE_Context *ctx)
1628 1628
1629 1629
1630/** 1630/**
1631 * Get the NULL-terminated array of listen sockets for this service.
1632 *
1633 * @param ctx service context to query
1634 * @return NULL if there are no listen sockets, otherwise NULL-terminated
1635 * array of listen sockets.
1636 */
1637struct GNUNET_NETWORK_Handle **
1638GNUNET_SERVICE_get_listen_sockets (struct GNUNET_SERVICE_Context *ctx)
1639{
1640 return ctx->lsocks;
1641}
1642
1643
1644/**
1631 * Stop a service that was started with "GNUNET_SERVICE_start". 1645 * Stop a service that was started with "GNUNET_SERVICE_start".
1632 * 1646 *
1633 * @param sctx the service context returned from the start function 1647 * @param sctx the service context returned from the start function