52 #define NNTP_ANUM_T_MAX ULONG_MAX
57 #define NNTP_CLOSE_NOQUIT 1U
63 #define NNTP_GROUP_FLAG_ASCII 0x01U
65 #define NNTP_GROUP_FLAG_PA 0x02U
75 int nntp_open(
int*,
const char*,
const char*,
const char*,
int,
int, ...);
int nntp_post_article(int, const char *)
Post article.
int nntp_get_capa_over(int)
Get overview capability of NNTP server.
int nntp_get_motd(int, char **, size_t *)
Get message of the day.
int nntp_get_article_header(int, const nntp_anum_t *, char **, size_t *)
Get article header.
int nntp_get_capa_list_motd(int)
Get message of the day capability of NNTP server.
NNTP group label (description string)
int nntp_get_capa_list_subscriptions(int)
Get message of the day capability of NNTP server.
struct nntp_groupdesc * nntp_group_descriptor_constructor(const char *)
Allocate and initialize a descriptor for group.
int nntp_open(int *, const char *, const char *, const char *, int, int,...)
Open connection to NNTP server.
int nntp_get_group_labels(int, size_t *, struct nntp_grouplabel **)
Get additional group information.
int nntp_get_article(int, const nntp_anum_t *, char **, size_t *)
Get complete article.
int nntp_set_group(int, const char *, struct nntp_groupdesc **)
Set current group.
int nntp_get_overview(int, nntp_anum_t, nntp_anum_t, char **, size_t *)
Get overview for article range.
int nntp_get_grouplist(int, size_t *, struct nntp_groupdesc **)
Get group list.
int nntp_get_article_body(int, const nntp_anum_t *, char **, size_t *)
Get article body.
void nntp_close(int *, unsigned int)
Disconnect from NNTP server.
int nntp_get_distrib_pats(int, const char **, size_t *)
Get distribution patterns.
int nntp_get_over_newsgroups_index(int, size_t *)
Get index of Newsgroups header field in overview.
unsigned long int nntp_anum_t
Article number.
int nntp_get_article_by_mid(int, const char *, char **, size_t *)
Get complete article via Message-ID.
int nntp_get_subscriptions(int, char **, size_t *)
Get subscription proposals.
Generated at 2024-04-27 using