mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
Improve channel_set_blocking().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@691 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -982,14 +982,18 @@ int channel_is_eof(CHANNEL *channel) {
|
|||||||
return (channel->remote_eof != 0);
|
return (channel->remote_eof != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \brief put the channel into nonblocking mode
|
/**
|
||||||
* \param channel channel
|
* @brief Put the channel into blocking or nonblocking mode.
|
||||||
* \param blocking boolean for blocking or nonblocking
|
*
|
||||||
* \bug This functionnality is still under development and
|
* @param channel The channel to use.
|
||||||
* doesn't work correctly
|
*
|
||||||
|
* @param blocking A boolean for blocking or nonblocking.
|
||||||
|
*
|
||||||
|
* @bug This functionnality is still under development and
|
||||||
|
* doesn't work correctly.
|
||||||
*/
|
*/
|
||||||
void channel_set_blocking(CHANNEL *channel, int blocking) {
|
void channel_set_blocking(CHANNEL *channel, int blocking) {
|
||||||
channel->blocking=blocking;
|
channel->blocking = (blocking == 0 ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int channel_request(CHANNEL *channel, const char *request,
|
static int channel_request(CHANNEL *channel, const char *request,
|
||||||
|
|||||||
Reference in New Issue
Block a user