mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
udp: split AnnounceResponse into V4 and V6 versions
This commit is contained in:
parent
4b07e007f3
commit
f3e41148fe
9 changed files with 255 additions and 119 deletions
|
|
@ -42,7 +42,7 @@ pub fn bench_announce_handler(
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
while let Ok((ConnectedResponse::Announce(r), _)) = response_receiver.try_recv() {
|
||||
while let Ok((ConnectedResponse::AnnounceIpv4(r), _)) = response_receiver.try_recv() {
|
||||
num_responses += 1;
|
||||
|
||||
if let Some(last_peer) = r.peers.last() {
|
||||
|
|
@ -54,7 +54,7 @@ pub fn bench_announce_handler(
|
|||
let total = bench_config.num_announce_requests * (round + 1);
|
||||
|
||||
while num_responses < total {
|
||||
if let Ok((ConnectedResponse::Announce(r), _)) = response_receiver.recv() {
|
||||
if let Ok((ConnectedResponse::AnnounceIpv4(r), _)) = response_receiver.recv() {
|
||||
num_responses += 1;
|
||||
|
||||
if let Some(last_peer) = r.peers.last() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue