version 1.63, 2006/03/25 13:17:02 |
version 1.64, 2006/03/30 09:58:16 |
|
|
|
|
#include "buffer.h" |
#include "buffer.h" |
#include "bufaux.h" |
#include "bufaux.h" |
#include "getput.h" |
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "log.h" |
#include "log.h" |
#include "atomicio.h" |
#include "atomicio.h" |
#include "progressmeter.h" |
#include "progressmeter.h" |
|
#include "misc.h" |
|
|
#include "sftp.h" |
#include "sftp.h" |
#include "sftp-common.h" |
#include "sftp-common.h" |
|
|
fatal("Outbound message too long %u", buffer_len(m)); |
fatal("Outbound message too long %u", buffer_len(m)); |
|
|
/* Send length first */ |
/* Send length first */ |
PUT_32BIT(mlen, buffer_len(m)); |
put_u32(mlen, buffer_len(m)); |
if (atomicio(vwrite, fd, mlen, sizeof(mlen)) != sizeof(mlen)) |
if (atomicio(vwrite, fd, mlen, sizeof(mlen)) != sizeof(mlen)) |
fatal("Couldn't send packet: %s", strerror(errno)); |
fatal("Couldn't send packet: %s", strerror(errno)); |
|
|