GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
METALINK_FILE_T(3) libmetalink Manual METALINK_FILE_T(3)

metalink_file_t - The structure that holds information of a single file.

#include <metalink/metalink_types.h>

metalink_file_t is a structure that holds information of a single file. It contains array of URLs(metalink_resource_t(3)), checksums and metadata for a file.

char *name;
long long int size;
char *version;
char *language;
char *os;
metalink_resource_t **resources;
int maxconnections;
metalink_checksum_t **checksums;
metalink_chunk_checksum_t *chunk_checksum;

Null terminated file name of the resource which corresponds to name element in Metalink XML file.

Length of the resource in bytes.

Null terminated version string which corresponds to version element in Metalink XML file.

Null terminated language string which corresponds to language element in Metalink XML file.

Null terminated os string which corresponds to os element in Metalink XML file.

Null terminated array of pointer of metalink_resource_t(3) structure. This corresponds to resources element in Metalink XML file. Each metalink_resource_t(3) structure corresponds to url element in Metalink XML file.

This is a value of maxconnections attribute of file element. This value is usually used for upper limit of concurrent connections for the resource.

Null terminated array of pointer of metalink_checksum_t(3) structure. This field is an array because in Metalink specification, verification element can contain multiple hash elements. Each metalink_checksum_t(3) structure corresponds to hash element in Metalink XML file.

The chunk checksum(aka piece hash) for the resource. This corresponds to pieces element under verification element in Metalink XML file.

metalink_checksum_t(3), metalink_chunk_checksum_t(3), metalink_resource_t(3), metalink_parse_file(3)
10/25/2008 libmetalink 0.0.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.