diff options
author | Gabor X Toth <*@tg-x.net> | 2015-09-26 17:10:24 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2015-09-26 17:10:24 +0000 |
commit | 55ad4fa34348aaa05fadedeb830ea72cea5d7cc4 (patch) | |
tree | eb6c5df2f82ca43b26859b2bcc00746c28b1eb6b /src/multicast/multicast_api.c | |
parent | 0219647545ddc7c66dcab13414541cf57d792618 (diff) | |
download | gnunet-55ad4fa34348aaa05fadedeb830ea72cea5d7cc4.tar.gz gnunet-55ad4fa34348aaa05fadedeb830ea72cea5d7cc4.zip |
multicast: removed replay cancellation as responses are limited
Diffstat (limited to 'src/multicast/multicast_api.c')
-rw-r--r-- | src/multicast/multicast_api.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/src/multicast/multicast_api.c b/src/multicast/multicast_api.c index 76c7fb004..117a0efe2 100644 --- a/src/multicast/multicast_api.c +++ b/src/multicast/multicast_api.c | |||
@@ -182,9 +182,6 @@ struct GNUNET_MULTICAST_ReplayHandle | |||
182 | */ | 182 | */ |
183 | struct GNUNET_MULTICAST_MemberReplayHandle | 183 | struct GNUNET_MULTICAST_MemberReplayHandle |
184 | { | 184 | { |
185 | |||
186 | GNUNET_MULTICAST_ResultCallback result_cb; | ||
187 | void *result_cls; | ||
188 | }; | 185 | }; |
189 | 186 | ||
190 | 187 | ||
@@ -1051,19 +1048,13 @@ member_replay_request (struct GNUNET_MULTICAST_Member *mem, | |||
1051 | * @param flags | 1048 | * @param flags |
1052 | * Additional flags for the replay request. | 1049 | * Additional flags for the replay request. |
1053 | * It is used and defined by GNUNET_MULTICAST_ReplayFragmentCallback | 1050 | * It is used and defined by GNUNET_MULTICAST_ReplayFragmentCallback |
1054 | * @param result_cb | ||
1055 | * Function to call when the replayed message fragment arrives. | ||
1056 | * @param result_cls | ||
1057 | * Closure for @a result_cb. | ||
1058 | * | 1051 | * |
1059 | * @return Replay request handle. | 1052 | * @return Replay request handle. |
1060 | */ | 1053 | */ |
1061 | struct GNUNET_MULTICAST_MemberReplayHandle * | 1054 | struct GNUNET_MULTICAST_MemberReplayHandle * |
1062 | GNUNET_MULTICAST_member_replay_fragment (struct GNUNET_MULTICAST_Member *mem, | 1055 | GNUNET_MULTICAST_member_replay_fragment (struct GNUNET_MULTICAST_Member *mem, |
1063 | uint64_t fragment_id, | 1056 | uint64_t fragment_id, |
1064 | uint64_t flags, | 1057 | uint64_t flags) |
1065 | GNUNET_MULTICAST_ResultCallback result_cb, | ||
1066 | void *result_cls) | ||
1067 | { | 1058 | { |
1068 | member_replay_request (mem, fragment_id, 0, 0, flags); | 1059 | member_replay_request (mem, fragment_id, 0, 0, flags); |
1069 | } | 1060 | } |
@@ -1084,10 +1075,6 @@ GNUNET_MULTICAST_member_replay_fragment (struct GNUNET_MULTICAST_Member *mem, | |||
1084 | * @param flags | 1075 | * @param flags |
1085 | * Additional flags for the replay request. | 1076 | * Additional flags for the replay request. |
1086 | * It is used & defined by GNUNET_MULTICAST_ReplayMessageCallback | 1077 | * It is used & defined by GNUNET_MULTICAST_ReplayMessageCallback |
1087 | * @param result_cb | ||
1088 | * Function to call for each replayed message fragment. | ||
1089 | * @param result_cls | ||
1090 | * Closure for @a result_cb. | ||
1091 | * | 1078 | * |
1092 | * @return Replay request handle, NULL on error. | 1079 | * @return Replay request handle, NULL on error. |
1093 | */ | 1080 | */ |
@@ -1095,26 +1082,12 @@ struct GNUNET_MULTICAST_MemberReplayHandle * | |||
1095 | GNUNET_MULTICAST_member_replay_message (struct GNUNET_MULTICAST_Member *mem, | 1082 | GNUNET_MULTICAST_member_replay_message (struct GNUNET_MULTICAST_Member *mem, |
1096 | uint64_t message_id, | 1083 | uint64_t message_id, |
1097 | uint64_t fragment_offset, | 1084 | uint64_t fragment_offset, |
1098 | uint64_t flags, | 1085 | uint64_t flags) |
1099 | GNUNET_MULTICAST_ResultCallback result_cb, | ||
1100 | void *result_cls) | ||
1101 | { | 1086 | { |
1102 | member_replay_request (mem, 0, message_id, fragment_offset, flags); | 1087 | member_replay_request (mem, 0, message_id, fragment_offset, flags); |
1103 | } | 1088 | } |
1104 | 1089 | ||
1105 | 1090 | ||
1106 | /** | ||
1107 | * Cancel a replay request. | ||
1108 | * | ||
1109 | * @param rh | ||
1110 | * Request to cancel. | ||
1111 | */ | ||
1112 | void | ||
1113 | GNUNET_MULTICAST_member_replay_cancel (struct GNUNET_MULTICAST_MemberReplayHandle *rh) | ||
1114 | { | ||
1115 | } | ||
1116 | |||
1117 | |||
1118 | static void | 1091 | static void |
1119 | member_to_origin (struct GNUNET_MULTICAST_Member *mem) | 1092 | member_to_origin (struct GNUNET_MULTICAST_Member *mem) |
1120 | { | 1093 | { |