ftp.nice.ch/pub/next/connectivity/news/Alexandra-0.9.s.tar.gz#/alex/descriptors.h

This is descriptors.h in view mode; [Download] [Up]

// use for nntp "list" reply
typedef struct _newsgroupDesc{
   char *groupname;
   long max;
   long min;
   char post;
} newsgroupDesc;

//used for nntp "xhdr"+"xover" reply 
typedef struct _subjectDesc{
   long number;
   int artsize;
   int lines;
   char **fieldBody;   
} subjectDesc;

//used by "Article" Object to store header information
#define SUBJECT 0
#define SUBJECT_AS_POSTED 1 // kept to respond with *excatly* the same subject (MIME de/encoding are not strictly inverse functions)
#define FROM 2
#define DATE 3
#define MSG_ID 4
#define REFS 5
#define REPLY_TO 6
#define FOLLOWUP_TO 7
#define NEWSGROUPS 8
#define ORGANIZATION 9
#define FIELD_COUNT 10
#define XOVER_COUNT 6

typedef struct _headerDesc {
   char **fieldBody;
} headerDesc;

//sort types for the article list

#define SORT_BY_NUMBER 0
#define SORT_BY_DATE 1
#define SORT_BY_SUBJECT 2
#define SORT_BY_REAL_NAME 3


// sort types for the newsgroup list
#define SORT_BY_NAME 0
#define SORT_BY_SELECT_PRIORITY 1

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.