Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate the flow? #1516

Open
willhuo opened this issue Oct 13, 2024 · 1 comment
Open

How to calculate the flow? #1516

willhuo opened this issue Oct 13, 2024 · 1 comment

Comments

@willhuo
Copy link

willhuo commented Oct 13, 2024

When I use ForwardedPortRemote in ssh.net ,How can I calculate send or receive datas size

@Rob-Hague
Copy link
Collaborator

You can subscribe to client.Session.ChannelOpenConfirmationReceived and inspect ChannelOpenConfirmationMessage.MaximumPacketSize. It eventually feeds through to:

var buffer = new byte[RemotePacketSize];
SocketAbstraction.ReadContinuous(_socket, buffer, 0, buffer.Length, SendData);

Does that help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants