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

Archive Index This month's Index

Subject: Re: Callback for channel data ready

Re: Callback for channel data ready

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 2 Mar 2012 14:26:53 +0100 (CET)

On Thu, 1 Mar 2012, Mitchell Hashimoto wrote:

> Instead, I believe it would be nice to do something like the following:
>
> int libssh2_session_ready_channels(LIBSSH2_SESSION *, LIBSSH2_CHANNEL **)

(just quickly popping in while still away on vacation)

This looks like a way I would prefer (since it would avoid callbacks and it
would allow users to a large extent keep using the existing API). Possibly it
could be made to return more than one channel so that the application can
select in which order to handle them.

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

the libssh2 team