Re: RE : RE : RE : About simple examples

2009-04-16 Thread Peter Stuge
Hi Jean-Louis, sorry if you feel I'm answering some of the questions you asked Daniel specifically. Jean-Louis CHARTON wrote: > Excuse me for this delayed reply but I was not reachable for one > week and had no access to Internet. No problem! > I agree to provide some help on examples or othe

RE : RE : RE : About simple examples

2009-04-16 Thread Jean-Louis CHARTON
vril 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 o

Re: RE : RE : About simple examples

2009-04-06 Thread Daniel Stenberg
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 b

RE : RE : About simple examples

2009-04-01 Thread Jean-Louis CHARTON
-Message d'origine- De : Peter Stuge [mailto:pe...@stuge.se] Envoyé : mercredi 1 avril 2009 19:21 À : libssh2-devel@lists.sourceforge.net Objet : Re: RE : About simple examples > > I would treat the simple examples as just that - very > simple examples of how to ca

Re: RE : About simple examples

2009-04-01 Thread Peter Stuge
Jean-Louis CHARTON wrote: > rc = libssh2_session_startup(session, sock); > if (rc) { > error ... > } .. > but since we are in non blocking mode, I believe the code should be: > > do { > rc = libssh2_session_startup(session, sock); > } while (rc == LIBSSH2_ERROR_EAGAIN); > > if (rc) { >err