Archive for November, 2008

Maybe you are looking for solution as simple as this(?):

#include <libaws/aws.h>
#include <iostream>

using namespace aws;

//we want 5 connections in our connectionpool
ConnectionPool<S3ConnectionPtr>* theS3ConnectionPool=new ConnectionPool<S3ConnectionPtr>(5,”MyAccessKeyId”,”MySecretAccessKey”);

// get one unused connection from the pool
S3ConnectionPtr lCon = theS3ConnectionPool->getConnection();

// lets get some data from an s3 bucket
GetResponsePtr lGet = lCon->get(”Bucketname”, “key”);
std::istream& lInStream = lGet->getInputStream();

// we print the response data to std::cout
while (lInStream.good())     // loop while there is still response data
{

char data;
lInStream.get(data);       // get character from response
std::cout << data;

}

download the example code

Hello World! Libaws is born.

We are proud to announce the first beta release of the libaws project. Libaws is an easy-to-use code library that helps you programming C++-Software that communicates with Amazon Web Services. More in detail, it supports communication with the following amazon services:

As an extra feature, libaws comes with S3FS, a Filesystem to mount an S3-Bucket to a folder on your linux system. S3FS is based on Fuse, and therefore only running in userspace (no higher privileges required to run it).