[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to do the dynamic local port forwarding
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: How to do the dynamic local port forwarding
- From: zhengfish <zhengfish@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 21 Mar 2012 16:06:05 +0800
- To: libssh@xxxxxxxxxx
Dose the libssh support dynamic port forwarding from the local to the remote? I find a api: int ssh_channel_open_forward(ssh_channel channel, const char *remotehost, int remoteport, const char *sourcehost, int localport) It can forward something from the local port to the remote port. However it bind the local address plus port statically. Then what function can do port forwarding dynamically? If not, the following two functions can do that? int ssh_channel_write(ssh_channel channel, const void *data, uint32_t len) int ssh_channel_read(ssh_channel channel, void *dest, uint32_t count, int is_stderr) Thx! -- _ __ _ _ ___| |__ ___ _ __ __ _ / _(_)___| |__ |_ / '_ \ / _ \ '_ \ / _` | | |_| / __| '_ \ / /| | | | __/ | | | (_| | | _| \__ \ | | | /___|_| |_|\___|_| |_|\__, | |_| |_|___/_| |_| |___/
Archive administrator: postmaster@lists.cynapses.org