diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-06 15:52:55 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-06 15:52:55 +0000 |
commit | df5c2d0c0b1f81967590bbcdc48ce19c6042c272 (patch) | |
tree | fd40a5635934d7cc5c0a264b6249bca774da36c3 | |
parent | 4f8ad2d211f9e0fb7491ffca0bc73f20face40f7 (diff) | |
download | gnunet-df5c2d0c0b1f81967590bbcdc48ce19c6042c272.tar.gz gnunet-df5c2d0c0b1f81967590bbcdc48ce19c6042c272.zip |
-create channel
-rw-r--r-- | src/mesh/gnunet-mesh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c index 17ebbcbaf..453a2fb4b 100644 --- a/src/mesh/gnunet-mesh.c +++ b/src/mesh/gnunet-mesh.c | |||
@@ -180,6 +180,8 @@ create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
180 | { | 180 | { |
181 | struct GNUNET_PeerIdentity pid; | 181 | struct GNUNET_PeerIdentity pid; |
182 | 182 | ||
183 | GNUNET_assert (NULL == ch); | ||
184 | |||
183 | if (GNUNET_OK != | 185 | if (GNUNET_OK != |
184 | GNUNET_CRYPTO_eddsa_public_key_from_string (target_id, | 186 | GNUNET_CRYPTO_eddsa_public_key_from_string (target_id, |
185 | strlen (target_id), | 187 | strlen (target_id), |
@@ -191,7 +193,8 @@ create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
191 | GNUNET_SCHEDULER_shutdown (); | 193 | GNUNET_SCHEDULER_shutdown (); |
192 | return; | 194 | return; |
193 | } | 195 | } |
194 | // GNUNET_MESH_channel_create () | 196 | GNUNET_MESH_channel_create (mh, NULL, &pid, GNUNET_MESSAGE_TYPE_MESH_CLI, |
197 | GNUNET_MESH_OPTION_DEFAULT); | ||
195 | } | 198 | } |
196 | 199 | ||
197 | 200 | ||