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

Archive Index This month's Index

Subject: Re: Blocking/non-blocking and session disconnect

Re: Blocking/non-blocking and session disconnect

From: Peter Stuge <peter_at_stuge.se>
Date: Sun, 27 May 2012 10:10:52 +0200

Paulo Caetano wrote:
> AFAICT, blocking is still off, so shutdown should be like this:
> ---
> shutdown:
> while (libssh2_session_disconnect(session, "Normal Shutdown, Thank
> you for playing") == LIBSSH2_ERROR_EAGAIN)

Don't reinvent the whell. This example and all others should just
switch the session back to blocking mode if blocking behavior is
desired, which I guess is the case since it is what is implemented

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-05-27

the libssh2 team