Using new Stream type adapted to the update of submodules (#11581)

* [fix bug] fix all err stream type.

* [update] update hbb_common.

* [bug fix] Stream in other platform.
This commit is contained in:
YinMo19
2025-04-28 00:47:33 +08:00
committed by GitHub
parent 16e9e716b6
commit c9d5e15ac0
6 changed files with 11 additions and 13 deletions

View File

@@ -20,10 +20,9 @@ use hbb_common::{
rendezvous_proto::*,
sleep,
socket_client::{self, connect_tcp, is_ipv4},
tcp::FramedStream,
tokio::{self, select, sync::Mutex, time::interval},
udp::FramedSocket,
AddrMangle, IntoTargetAddr, ResultType, TargetAddr,
AddrMangle, IntoTargetAddr, ResultType, Stream, TargetAddr,
};
use crate::{
@@ -706,7 +705,7 @@ async fn direct_server(server: ServerPtr) {
enum Sink<'a> {
Framed(&'a mut FramedSocket, &'a TargetAddr<'a>),
Stream(&'a mut FramedStream),
Stream(&'a mut Stream),
}
impl Sink<'_> {