1
1
Этот коммит содержится в:
Daniel Stenberg 2008-12-22 12:51:27 +00:00
родитель 8eba2961ac
Коммит d602478e87
2 изменённых файлов: 9 добавлений и 10 удалений

Просмотреть файл

@ -1,6 +1,6 @@
.\" $Id: libssh2_session_block_directions.3,v 1.1 2008/11/27 12:19:43 bagder Exp $ .\" $Id: libssh2_session_block_directions.3,v 1.2 2008/12/22 12:51:27 bagder Exp $
.\" .\"
.TH libssh2_session_block_directions 3 "1 Oct 2008" "libssh2 0.19" "libssh2 manual" .TH libssh2_session_block_directions 3 "1 Oct 2008" "libssh2 1.0" "libssh2 manual"
.SH NAME .SH NAME
libssh2_session_block_directions - get directions that socket should wait for before calling libssh2 function again libssh2_session_block_directions - get directions that socket should wait for before calling libssh2 function again
.SH SYNOPSIS .SH SYNOPSIS
@ -8,17 +8,14 @@ libssh2_session_block_directions - get directions that socket should wait for be
int int
libssh2_session_block_directions(LIBSSH2_SESSION *session); libssh2_session_block_directions(LIBSSH2_SESSION *session);
.SH DESCRIPTION .SH DESCRIPTION
\fIsession\fP - Session instance as returned by \fIsession\fP - Session instance as returned by \fBlibssh2_session_init(3)\fP
.BR libssh2_session_init(3)
When any of libssh2 functions return \fBLIBSSH2_ERROR_EAGAIN\fP an application When any of libssh2 functions return \fBLIBSSH2_ERROR_EAGAIN\fP an application
should wait for the socket to have data available for reading or should wait for the socket to have data available for reading or
writing. Depending on the return value of writing. Depending on the return value of
\fIlibssh2_session_block_directions(3)\fP an application should wait for read, \fIlibssh2_session_block_directions(3)\fP an application should wait for read,
write or both. write or both.
.SH RETURN VALUE .SH RETURN VALUE
Returns the set of directions as a binary mask. Can be a combination of: Returns the set of directions as a binary mask. Can be a combination of:
@ -30,3 +27,5 @@ Application should wait for data to be available for socket prior to calling a
libssh2 function again. If \fBLIBSSH2_SESSION_BLOCK_INBOUND\fP is set select libssh2 function again. If \fBLIBSSH2_SESSION_BLOCK_INBOUND\fP is set select
should contain the session socket in readfds set. Correspondingly in case of should contain the session socket in readfds set. Correspondingly in case of
\fBLIBSSH2_SESSION_BLOCK_INBOUND\fP writefds set should contain the socket. \fBLIBSSH2_SESSION_BLOCK_INBOUND\fP writefds set should contain the socket.
.SH AVAILABILITY
Added in 1.0

Просмотреть файл

@ -86,12 +86,12 @@ typedef long long libssh2_int64_t;
to make the BANNER define (used by src/session.c) be a valid SSH to make the BANNER define (used by src/session.c) be a valid SSH
banner. Release versions have no appended strings and may of coruse not banner. Release versions have no appended strings and may of coruse not
have dashes either. */ have dashes either. */
#define LIBSSH2_VERSION "0.19.0_CVS" #define LIBSSH2_VERSION "1.0.0_CVS"
/* The numeric version number is also available "in parts" by using these /* The numeric version number is also available "in parts" by using these
defines: */ defines: */
#define LIBSSH2_VERSION_MAJOR 0 #define LIBSSH2_VERSION_MAJOR 1
#define LIBSSH2_VERSION_MINOR 19 #define LIBSSH2_VERSION_MINOR 0
#define LIBSSH2_VERSION_PATCH 0 #define LIBSSH2_VERSION_PATCH 0
/* This is the numeric version of the libssh2 version number, meant for easier /* This is the numeric version of the libssh2 version number, meant for easier
@ -109,7 +109,7 @@ typedef long long libssh2_int64_t;
and it is always a greater number in a more recent release. It makes and it is always a greater number in a more recent release. It makes
comparisons with greater than and less than work. comparisons with greater than and less than work.
*/ */
#define LIBSSH2_VERSION_NUM 0x001300 #define LIBSSH2_VERSION_NUM 0x010000
/* /*
* This is the date and time when the full source package was created. The * This is the date and time when the full source package was created. The