This is a simple program which shows how to use the c wrappers to extract a chunk/byte range of an object within the namespace on an Atmos system.
./a.out object_name starting_byte total_bytes
Here is a sample run pulling 32 bytes from offset 31 of the object atmos.js living within my namespace at /atmos.js:
sjunkin@dev-ubuntu$ ./atmostest atmos.js 31 32 urn new Date().toGMTString();
Below is the code in C I used - it needs to be linked against the c wrappers. The important codebits here are the rd.offset and rd.body_size which dictate where and how much of the object to bring back.
This code gets translated by the wrapper code into the HTTP header
which is passed with the GET request in the wrappers to the Atmos system.