Subject: RE : RE : RE : About simple examples

RE : RE : RE : About simple examples

From: Jean-Louis CHARTON <Jean-Louis.CHARTON_at_oikialog.com>
Date: Thu, 16 Apr 2009 12:27:35 +0200

Hi Daniel,

Excuse me for this delayed reply but I was not reachable for one week and had no access to Internet.

I agree to provide some help on examples or other parts of libssh2 as well. However, I have currently very little time to spend on such activity so I can't tell you exactly when a particular patch of mine is going to be available.
I believe samples need some cleanup to be really useful and I also would like to fix properly the code I wrote for building the public key from the private key file for use in userauth_hostbased_fromfile and userauth_publickey_fromfile functions.

Since I'm not very familiar with libssh2 code yet, I would prefer at first to send you my patches for approval rather than committing then directly in the CVS.

Is it okay for you?

JL

-----Message d'origine-----
De : Daniel Stenberg [mailto:daniel_at_haxx.se]
Envoyé : mardi 7 avril 2009 00:11
À : libssh2 development
Objet : Re: RE : RE : About simple examples

On Wed, 1 Apr 2009, Jean-Louis CHARTON wrote:

> I mean that for example just do a:
> rc = libssh2_session_startup(...)
> if (rc) {
> exit some_error;
> }
>
> is a pretty poor illustration of how to use libssh2 library in that case
> because you can be pretty sure that most of the time rc will be EAGAIN and
> so most of the time, the sample program is going to fail.
>
> If EAGAIN is not handled correctly in the non blocking examples; then why
> make a difference between blocking and non blocking examples?

I agree completely with you on this.

Are you interested in writing up some patches for this, or possibly even get
commit access to the CVS repo to continue your cleanups without having to go
through anyone else?

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-04-16