www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Re: [libssh2] #219: libssh2_channel_forward_listen_ex freezes the program!

Re: [libssh2] #219: libssh2_channel_forward_listen_ex freezes the program!

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Tue, 17 May 2011 17:36:08 -0000

#219: libssh2_channel_forward_listen_ex freezes the program!
-----------------------+----------------------------------------------------
  Reporter: fingster | Owner: bagder
      Type: defect | Status: assigned
  Priority: high | Milestone: 1.2.9
 Component: API | Version: 1.2.8
Resolution: | Keywords: port forward
    Blocks: | Blocked By:
-----------------------+----------------------------------------------------

Comment (by fingster):

 When I put
 {{{
 libssh2_session_set_blocking(session, 0);
 }}}
 before the cited example code, channel gets nothing but NULL. And printf
 shows that "Remote forwding port: 0".
 If I put
 {{{
 libssh2_session_set_blocking(session, 0);
 }}}
 after the cited example code, the program freezes at
 libssh2_channel_forward_listen_ex and never returns. Nothing outputs.

 how to use libssh2_channel_forward_listen_ex? Any example?
 Thank you!

-- 
Ticket URL: <http://trac.libssh2.org/ticket/219#comment:2>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-17

the libssh2 team