From ffca268bee7be749eab6643348ce58584abfca5b Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 14 Sep 2009 23:18:07 +0200 Subject: Add warning in channel_open_forward documentation Tell users it does not do magic (yet) --- libssh/channels.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libssh') diff --git a/libssh/channels.c b/libssh/channels.c index ed405892..923ba4a3 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -672,6 +672,9 @@ int channel_open_session(ssh_channel channel) { * * @param localport The source port (your local computer). It's facultative * and for logging purpose. + * @warning This function does not bind the local port and does not automatically + * forward the content of a socket to the channel. You still have to + * use channel_read and channel_write for this. * * @return SSH_OK on success\n * SSH_ERROR on error -- cgit v1.2.3