QueueFileFormat
From NNTPGrab
This document described the file format which is used to save the contents of the download queue to disk.
The following declarations are used in the file server/nntpgrab_types.h :
typedef struct _nntp_part { const char message_id[256]; int size; int partnum; } NNTPPart; typedef struct _nntp_file { const char subject[256]; const char poster[256]; time_t stamp; guint64 file_size; GArray *parts; GList *groups; const char tmp_filename[256]; } NNTPFile; typedef struct _nntp_collection { const char collection_name[256]; guint64 total_size; GArray *files; } NNTPCollection;
This file format is used to save the queue :
<[CDATA[name of my collection]]> 1234567 <[CDATA[this is a nice subject]]> <[CDATA[this is the poster field]]> 1185897734 123456 <[CDATA[fileF8tgMC]]> <[CDATA[alt.binaries.boneless]]> <[CDATA[alt.binaries.nl]]> <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[this is another nice subject]]> <[CDATA[this is the another poster field]]> 1185897734 123456 <[CDATA[fileG36df2]]> <[CDATA[alt.binaries.boneless]]> <[CDATA[alt.binaries.nl]]> <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[name of my second collection]]> 1234567 <[CDATA[this is yet another nice subject]]> <[CDATA[this is yet another poster field]]> 1185897734 123456 <[CDATA[fileY4qs68]]> <[CDATA[alt.binaries.boneless]]> <[CDATA[alt.binaries.nl]]> <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[this is another nice subject]]> <[CDATA[this is the another poster field]]> 1185897734 123456 <[CDATA[fileQ4f6d3]]> <[CDATA[alt.binaries.boneless]]> <[CDATA[alt.binaries.nl]]> <[CDATA[]]> 1234 <[CDATA[]]> 1234 <[CDATA[]]> 1234
All mentioned file sizes are in bytes
