Subject: [libssh2] How to check that written bytes have been forwarded to remote port?

[libssh2] How to check that written bytes have been forwarded to remote port?

From: Sabyasachi Ruj <ruj.sabya_at_gmail.com>
Date: Fri, 8 Feb 2008 18:02:41 +0530

Hello,
How can I check the status of a forwarded channel?

I am forwarding a channel from local port to a remote MySQL server.
I have to identify the condition where I have setup a connection to MySQL
successfully.
And then the MySQL server goes off.

Then If I am writing into the forwarded channel it still writes
successfully.
(Returns the number of bytes written).

But as I have to set the channel a non blocking one,
read also simply returns LIBSSH2_ERROR_EAGAIN.

How can I identify that the written bytes on the channel had not been
forwarded to MySQL port?

-- 
Sabyasachi

-------------------------------------------------------------------------
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-02-08