Bugs item #1824285, was opened at 2007-11-01 16:37 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1824285&group_id=125852
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: EAV (evaldes) Assigned to: Nobody/Anonymous (nobody) Summary: problems with remote forwarding Initial Comment: I have attemped to do remote forwarding two different ways: //libssh2_poll example listener = libssh2_channel_forward_listen(session,3306); retval = 0; while (retval == 0) { ssh_file_descriptor.type = LIBSSH2_POLLFD_LISTENER; ssh_file_descriptor.fd.listener = listener; ssh_file_descriptor.events = LIBSSH2_POLLFD_POLLIN; 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: https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1824285&group_id=125852 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel