初步实现

This commit is contained in:
Gui.H 2021-06-17 08:48:27 +08:00
parent a7b6be89ee
commit d898f1d5ea
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Remove="AsyncSocketSwapV2.cs" />
<Compile Remove="AsyncSocketSwap.cs" />
<Compile Remove="Client\SuiDaoServer.cs.BASE.cs" />
<Compile Remove="Client\SuiDaoServer.cs.LOCAL.cs" />
<Compile Remove="Client\SuiDaoServer.cs.REMOTE.cs" />

View File

@ -59,7 +59,7 @@ namespace FastTunnel.Core.Handlers.Client
throw;
}
new AsyncSocketSwap(connecter.Socket, localConnecter.Socket).StartSwapAsync();
new AsyncSocketSwapV2(connecter.Socket, localConnecter.Socket).StartSwapAsync();
}
}
}

View File

@ -20,7 +20,7 @@ namespace FastTunnel.Core.Handlers.Client
var localConnecter_ssh = new Connecter(request_ssh.SSHConfig.LocalIp, request_ssh.SSHConfig.LocalPort, 5000);
localConnecter_ssh.Connect();
new AsyncSocketSwap(connecter_ssh.Socket, localConnecter_ssh.Socket).StartSwapAsync();
new AsyncSocketSwapV2(connecter_ssh.Socket, localConnecter_ssh.Socket).StartSwapAsync();
}
}
}

View File

@ -32,7 +32,7 @@ namespace FastTunnel.Core.Handlers.Server
server.RequestTemp.TryRemove(SwapMsg.msgId, out _);
// Join
new AsyncSocketSwap(request.CustomerClient, client)
new AsyncSocketSwapV2(request.CustomerClient, client)
.BeforeSwap(() =>
{
if (request.Buffer != null) client.Send(request.Buffer);