Open willhuo opened 4 days ago
When I use ForwardedPortRemote in ssh.net ,How can I calculate send or receive datas size
You can subscribe to client.Session.ChannelOpenConfirmationReceived and inspect ChannelOpenConfirmationMessage.MaximumPacketSize. It eventually feeds through to:
client.Session.ChannelOpenConfirmationReceived
ChannelOpenConfirmationMessage.MaximumPacketSize
https://github.com/sshnet/SSH.NET/blob/fbedaabb9c6f1d4b342acf91bc320109099c98fd/src/Renci.SshNet/Channels/ChannelForwardedTcpip.cs#L89-L91
Does that help?
When I use ForwardedPortRemote in ssh.net ,How can I calculate send or receive datas size