aboutsummaryrefslogtreecommitdiff
path: root/src/include
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/include
parent75b02f33ec88d5b2db25d31a1b6fffc82290f38c (diff)
downloadgnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.tar.gz
gnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.zip
adding TCP_STEALTH support to TCP plugin
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_connection_lib.h20
-rw-r--r--src/include/gnunet_service_lib.h11
2 files changed, 29 insertions, 2 deletions
diff --git a/src/include/gnunet_connection_lib.h b/src/include/gnunet_connection_lib.h
index 960d4d730..7b0de7745 100644
--- a/src/include/gnunet_connection_lib.h
+++ b/src/include/gnunet_connection_lib.h
@@ -123,16 +123,32 @@ GNUNET_CONNECTION_persist_ (struct GNUNET_CONNECTION_Handle *connection);
123 * reach the other side before the process is terminated. 123 * reach the other side before the process is terminated.
124 * 124 *
125 * @param connection the connection to make flushing and blocking 125 * @param connection the connection to make flushing and blocking
126 * @return GNUNET_OK on success 126 * @return #GNUNET_OK on success
127 */ 127 */
128int 128int
129GNUNET_CONNECTION_disable_corking (struct GNUNET_CONNECTION_Handle *connection); 129GNUNET_CONNECTION_disable_corking (struct GNUNET_CONNECTION_Handle *connection);
130 130
131 131
132/** 132/**
133 * Create a connection handle by (asynchronously) connecting to a host.
134 * This function returns immediately, even if the connection has not
135 * yet been established. This function only creates TCP connections.
136 *
137 * @param s socket to connect
138 * @param serv_addr server address
139 * @param addrlen length of server address
140 * @return the connection handle
141 */
142struct GNUNET_CONNECTION_Handle *
143GNUNET_CONNECTION_connect_socket (struct GNUNET_NETWORK_Handle *s,
144 const struct sockaddr *serv_addr,
145 socklen_t addrlen);
146
147
148/**
133 * Create a connection handle by boxing an existing OS socket. The OS 149 * Create a connection handle by boxing an existing OS socket. The OS
134 * socket should henceforth be no longer used directly. 150 * socket should henceforth be no longer used directly.
135 * GNUNET_CONNECTION_destroy will close it. 151 * #GNUNET_CONNECTION_destroy() will close it.
136 * 152 *
137 * @param osSocket existing socket to box 153 * @param osSocket existing socket to box
138 * @return the boxed socket handle 154 * @return the boxed socket handle
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 */
168struct GNUNET_NETWORK_Handle **
169GNUNET_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