Archive Index
This month's Index
|
Subject: [libssh2] [ libssh2-Bugs-1824285 ] problems with remote forwarding
[libssh2] [ libssh2-Bugs-1824285 ] problems with remote forwarding
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 01 Nov 2007 13:37:54 -0700
Bugs item #1824285, was opened at 2007-11-01 16:37
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
//libssh2_poll example
listener = libssh2_channel_forward_listen(session,3306);
retval = 0;
while (retval == 0)
retval = libssh2_poll(&ssh_file_descriptor,1,500);
printf("retval - %d, revents - %d\n",retval,ssh_file_descriptor.revents);
//Quick and dirty libssh_channel_forward accept
listener = libssh2_channel_forward_listen_ex(session,NULL,3306,NULL,16);
channel = libssh2_channel_forward_accept(listener);
Both methods successfully set up a listening socket on the remote box. In the first example, when a connection attempt is made, the last call to libssh2_poll never returns. In the second example, the call to libssh2_channel_forward_accept never returns.
----------------------------------------------------------------------
You can respond by visiting:
-------------------------------------------------------------------------
|