Skip to content

session.forward_listen_ex bound_port access #63

@caryfitzhugh

Description

@caryfitzhugh

When calling forward_listen_ex the third parameter is "bound_port" which is passed by reference in the pyx file to libssh2

With python not having pointers to int values, how would one get access to that resulting port value?

I have tried

session.forward_listen_ex('localhost', 0 , bound_port, 10)

And the forward is created, but bound_port is not updated.

I could add a PR for a forward_listen_ex2 which returns the tuple of the port and Listener? Or is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions