Subject: Re: Callback for channel data ready

Re: Callback for channel data ready

From: Mitchell Hashimoto <mitchell.hashimoto_at_gmail.com>
Date: Wed, 29 Feb 2012 10:43:43 -0800

Peter,

On Wed, Feb 29, 2012 at 12:08 AM, Peter Stuge <peter_at_stuge.se> wrote:

> Mitchell Hashimoto wrote:
> > I could iterate through each channel and do a channel_read()
>
> Indeed. See example/direct_tcpip.c or example/tcpip-forward.c.
>
>
> > but I was hoping perhaps there was a better way?
>
> Sorry not at this time. I think we want callbacks though, so feel
> free to discuss and send patches. :)
>

Understood. Thanks.

I haven't been using libssh2 long enough to feel comfortable enough in
suggesting API improvements, since I haven't quite immersed myself in the
"libssh2 way." But I agree that callbacks would be fantastic.

Best,
Mitchell

>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-02-29