mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
Format packet_flush().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@457 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -398,14 +398,18 @@ int packet_translate(SSH_SESSION *session) {
|
|||||||
return SSH_OK;
|
return SSH_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the the bufferized output. If the session is blocking, or enforce_blocking
|
/*
|
||||||
* is set, the call may block. Otherwise, it won't block.
|
* Write the the bufferized output. If the session is blocking, or
|
||||||
* return SSH°OK if everything has been sent, SSH_AGAIN if there are still things
|
* enforce_blocking is set, the call may block. Otherwise, it won't block.
|
||||||
* to send on buffer, SSH_ERROR if there is an error. */
|
* Return SSH_OK if everything has been sent, SSH_AGAIN if there are still
|
||||||
int packet_flush(SSH_SESSION *session, int enforce_blocking){
|
* things to send on buffer, SSH_ERROR if there is an error.
|
||||||
if(enforce_blocking || session->blocking)
|
*/
|
||||||
return ssh_socket_blocking_flush(session->socket);
|
int packet_flush(SSH_SESSION *session, int enforce_blocking) {
|
||||||
return ssh_socket_nonblocking_flush(session->socket);
|
if (enforce_blocking || session->blocking) {
|
||||||
|
return ssh_socket_blocking_flush(session->socket);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ssh_socket_nonblocking_flush(session->socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this function places the outgoing packet buffer into an outgoing socket buffer */
|
/* this function places the outgoing packet buffer into an outgoing socket buffer */
|
||||||
|
|||||||
Reference in New Issue
Block a user