On Fri, Jan 25, 2008 at 01:27:54PM +0530, Sabyasachi Ruj wrote:
> channel1 = libssh2_channel_direct_tcpip(session, "192.168.1.3", 3306);
> if (channel1 == 0)
> bail("Failed channel forwarding: channel1\n");
> else
> printf("channel connected (%x)\n",channel1);
>
>
> /*
> HERE THE ERROR OCCURS: In Windows it fails.
> In linux we can create the channel successfully
> */
>
> channel2 = libssh2_channel_direct_tcpip(session, "192.168.1.3", 3306);
Have you tried with a different IP or port?
> if (channel2 == 0)
> bail("Failed channel forwarding: channel2\n");
> else
> printf("channel connected (%x)\n",channel2);
Also - is there some kind of error message you can get from libssh2?
//Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-01-25