aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_stream_lib.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-01-30 20:41:35 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-01-30 20:41:35 +0000
commit66ec2f95ecdafdb674ea9fc30938574d4487a022 (patch)
treef276d6b8e81a8f16bb1013c300c339704b93300d /src/include/gnunet_stream_lib.h
parentf1946d77ecf70629f785c56a68186072ac0d0f01 (diff)
downloadgnunet-66ec2f95ecdafdb674ea9fc30938574d4487a022.tar.gz
gnunet-66ec2f95ecdafdb674ea9fc30938574d4487a022.zip
-added configuration parameter
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r--src/include/gnunet_stream_lib.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h
index 8bef2e0c9..d3c4e1653 100644
--- a/src/include/gnunet_stream_lib.h
+++ b/src/include/gnunet_stream_lib.h
@@ -105,6 +105,7 @@ enum GNUNET_STREAM_Option
105/** 105/**
106 * Tries to open a stream to the target peer 106 * Tries to open a stream to the target peer
107 * 107 *
108 * @param cfg configuration to use
108 * @param target the target peer to which the stream has to be opened 109 * @param target the target peer to which the stream has to be opened
109 * @param app_port the application port number which uniquely identifies this 110 * @param app_port the application port number which uniquely identifies this
110 * stream 111 * stream
@@ -115,7 +116,8 @@ enum GNUNET_STREAM_Option
115 * opened 116 * opened
116 */ 117 */
117struct GNUNET_STREAM_Socket * 118struct GNUNET_STREAM_Socket *
118GNUNET_STREAM_open (const struct GNUNET_PeerIdentity *target, 119GNUNET_STREAM_open (const struct GNUNET_CONFIGURATION_Handle *cfg,
120 const struct GNUNET_PeerIdentity *target,
119 GNUNET_MESH_ApplicationType app_port, 121 GNUNET_MESH_ApplicationType app_port,
120 GNUNET_STREAM_OpenCallback open_cb, 122 GNUNET_STREAM_OpenCallback open_cb,
121 void *open_cb_cls, 123 void *open_cb_cls,
@@ -166,6 +168,7 @@ struct GNUNET_STREAM_ListenSocket;
166/** 168/**
167 * Listens for stream connections for a specific application ports 169 * Listens for stream connections for a specific application ports
168 * 170 *
171 * @param cfg the configuration to use
169 * @param app_port the application port for which new streams will be accepted 172 * @param app_port the application port for which new streams will be accepted
170 * @param listen_cb this function will be called when a peer tries to establish 173 * @param listen_cb this function will be called when a peer tries to establish
171 * a stream with us 174 * a stream with us
@@ -173,7 +176,8 @@ struct GNUNET_STREAM_ListenSocket;
173 * @return listen socket, NULL for any error 176 * @return listen socket, NULL for any error
174 */ 177 */
175struct GNUNET_STREAM_ListenSocket * 178struct GNUNET_STREAM_ListenSocket *
176GNUNET_STREAM_listen (GNUNET_MESH_ApplicationType app_port, 179GNUNET_STREAM_listen (const struct GNUNET_CONFIGURATION_Handle *cfg,
180 GNUNET_MESH_ApplicationType app_port,
177 GNUNET_STREAM_ListenCallback listen_cb, 181 GNUNET_STREAM_ListenCallback listen_cb,
178 void *listen_cb_cls); 182 void *listen_cb_cls);
179 183