Skip to content

How to calculate the flow? #1516

Closed
Closed

Description

@willhuo

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

Activity

  1. Rob-Hague commented on Oct 13, 2024

    @Rob-Hague
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions