diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-07-08 11:04:32 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-07-08 11:04:32 +0000 |
commit | 200667a697bb2fa1ade4a78b7bb9a8cef8f3d5d5 (patch) | |
tree | 4d88fd5a6a42a098a39cdb9a5befe4bfd8e2cfe5 /src/fs/gnunet-service-fs_mesh.c | |
parent | eb420e4b0f23c6ddb079cd40bc76b4f2a35bdbb1 (diff) | |
download | gnunet-200667a697bb2fa1ade4a78b7bb9a8cef8f3d5d5.tar.gz gnunet-200667a697bb2fa1ade4a78b7bb9a8cef8f3d5d5.zip |
Added mesh reliable tunnels
Diffstat (limited to 'src/fs/gnunet-service-fs_mesh.c')
-rw-r--r-- | src/fs/gnunet-service-fs_mesh.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_mesh.c b/src/fs/gnunet-service-fs_mesh.c index a2cf3dad4..4c311279d 100644 --- a/src/fs/gnunet-service-fs_mesh.c +++ b/src/fs/gnunet-service-fs_mesh.c | |||
@@ -452,9 +452,11 @@ reset_mesh (struct StreamHandle *sh) | |||
452 | &move_to_pending, | 452 | &move_to_pending, |
453 | sh); | 453 | sh); |
454 | sh->mesh = GNUNET_MESH_tunnel_create (listen_socket, | 454 | sh->mesh = GNUNET_MESH_tunnel_create (listen_socket, |
455 | sh, | 455 | sh, |
456 | &sh->target, | 456 | &sh->target, |
457 | GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER); | 457 | GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER, |
458 | GNUNET_YES, | ||
459 | GNUNET_YES); | ||
458 | } | 460 | } |
459 | 461 | ||
460 | 462 | ||
@@ -743,7 +745,9 @@ get_mesh (const struct GNUNET_PeerIdentity *target) | |||
743 | sh->mesh = GNUNET_MESH_tunnel_create (listen_socket, | 745 | sh->mesh = GNUNET_MESH_tunnel_create (listen_socket, |
744 | sh, | 746 | sh, |
745 | &sh->target, | 747 | &sh->target, |
746 | GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER); | 748 | GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER, |
749 | GNUNET_YES, | ||
750 | GNUNET_YES); | ||
747 | GNUNET_assert (GNUNET_OK == | 751 | GNUNET_assert (GNUNET_OK == |
748 | GNUNET_CONTAINER_multihashmap_put (mesh_map, | 752 | GNUNET_CONTAINER_multihashmap_put (mesh_map, |
749 | &sh->target.hashPubKey, | 753 | &sh->target.hashPubKey, |