mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
初步实现
This commit is contained in:
parent
a7b6be89ee
commit
d898f1d5ea
|
@ -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" />
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace FastTunnel.Core.Handlers.Client
|
|||
throw;
|
||||
}
|
||||
|
||||
new AsyncSocketSwap(connecter.Socket, localConnecter.Socket).StartSwapAsync();
|
||||
new AsyncSocketSwapV2(connecter.Socket, localConnecter.Socket).StartSwapAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user