Lines Matching refs:nwrite
3184 size_t nwrite; in ssh_tls_send() local
3195 result = Curl_conn_send(data, socknum, buffer, length, FALSE, &nwrite); in ssh_tls_send()
3201 Curl_debug(data, CURLINFO_DATA_OUT, (char *)buffer, nwrite); in ssh_tls_send()
3202 return (ssize_t)nwrite; in ssh_tls_send()
3506 ssize_t nwrite; in scp_send() local
3513 nwrite = (ssize_t) libssh2_channel_write(sshc->ssh_channel, mem, len); in scp_send()
3515 ssh_block2waitfor(data, (nwrite == LIBSSH2_ERROR_EAGAIN)); in scp_send()
3517 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in scp_send()
3519 nwrite = 0; in scp_send()
3521 else if(nwrite < LIBSSH2_ERROR_NONE) { in scp_send()
3522 *err = libssh2_session_error_to_CURLE((int)nwrite); in scp_send()
3523 nwrite = -1; in scp_send()
3526 return nwrite; in scp_send()
3645 ssize_t nwrite; in sftp_send() local
3651 nwrite = libssh2_sftp_write(sshc->sftp_handle, mem, len); in sftp_send()
3653 ssh_block2waitfor(data, (nwrite == LIBSSH2_ERROR_EAGAIN)); in sftp_send()
3655 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in sftp_send()
3657 nwrite = 0; in sftp_send()
3659 else if(nwrite < LIBSSH2_ERROR_NONE) { in sftp_send()
3660 *err = libssh2_session_error_to_CURLE((int)nwrite); in sftp_send()
3661 nwrite = -1; in sftp_send()
3664 return nwrite; in sftp_send()