Use sftp_msg_write_int() for 32-bit values; write_long() is for 64-bit values.