tin  2.4.4
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.4.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

nntplib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_capabilities
 

Macros

#define NNTP_SERVER_FILE   "/etc/nntpserver"
 
#define NNTP_TCP_NAME   "nntp"
 
#define NNTP_TCP_PORT   "119"
 
#define NNTP_TRY_RECONNECT   2
 
#define INF_HELP   100 /* Help text on way */
 
#define INF_CAPABILITIES   101 /* Capability list follows */
 
#define INF_DATE   111 /* yyyymmddhhmmss Server date and time */
 
#define OK_CANPOST   200 /* Hello; you can post */
 
#define OK_NOPOST   201 /* Hello; you can't post */
 
#define OK_EXTENSIONS   202 /* extensions supported follow */
 
#define OK_GOODBYE   205 /* Closing connection */
 
#define OK_COMPRESS   206 /* Compression active */
 
#define OK_GROUP   211 /* Group selected */
 
#define OK_GROUPS   215 /* Newsgroups follow */
 
#define OK_MOTD   215 /* News motd follows */
 
#define OK_ARTICLE   220 /* Article (head & body) follows */
 
#define OK_HEAD   221 /* Head follows */
 
#define OK_XHDR   221 /* headers follow */
 
#define OK_XPAT   221 /* headers follow */
 
#define OK_BODY   222 /* Body follows */
 
#define OK_NOTEXT   223 /* No text sent -- stat, next, last */
 
#define OK_XOVER   224 /* .overview data follows */
 
#define OK_HDR   225 /* headers follow */
 
#define OK_NEWNEWS   230 /* New articles by message-id follow */
 
#define OK_NEWGROUPS   231 /* New newsgroups follow */
 
#define OK_XFERED   235 /* Article transferred successfully */
 
#define OK_POSTED   240 /* Article posted successfully */
 
#define OK_AUTHSYS   280 /* Authorization system ok */
 
#define OK_AUTH   281 /* Authorization (user/pass) ok */
 
#define OK_BIN   282 /* binary data follows */
 
#define OK_LIST   282 /* list follows */
 
#define OK_AUTH_SASL   283 /* authentication accepted (with success data) */
 
#define CONT_XFER   335 /* Continue to send article */
 
#define CONT_POST   340 /* Continue to post article */
 
#define NEED_AUTHINFO   380 /* authorization is required */
 
#define NEED_AUTHDATA   381 /* <type> authorization data required */
 
#define NEED_AUTHDATA_SASL   383 /* continue with SASL exchange */
 
#define ERR_GOODBYE   400 /* Have to hang up for some reason */
 
#define ERR_STATE   401 /* The client must change the state of the connection */
 
#define ERR_COMPRESS   403 /* Unable to activate compression */
 
#define ERR_NOGROUP   411 /* No such newsgroup */
 
#define ERR_NCING   412 /* Not currently in newsgroup */
 
#define ERR_NOCRNT   420 /* No current article selected */
 
#define ERR_NONEXT   421 /* No next article in this group */
 
#define ERR_NOPREV   422 /* No previous article in this group */
 
#define ERR_NOARTIG   423 /* No such article in this group */
 
#define ERR_NOART   430 /* No such article at all */
 
#define ERR_GOTIT   435 /* Already got that article, don't send */
 
#define ERR_XFERFAIL   436 /* Transfer failed */
 
#define ERR_XFERRJCT   437 /* Article rejected, don't resend */
 
#define ERR_NOPOST   440 /* Posting not allowed */
 
#define ERR_POSTFAIL   441 /* Posting failed */
 
#define ERR_NOAUTH   480 /* authorization required for command */
 
#define ERR_AUTHFAIL   481 /* Authentication failed/rejected */
 
#define ERR_AUTHSEQ   482 /* Authentication commands issued out of sequence or SASL protocol error */
 
#define ERR_ENCRYPT   483 /* encrpytion required */
 
#define ERR_COMMAND   500 /* Command not recognized */
 
#define ERR_CMDSYN   501 /* Command syntax error */
 
#define ERR_ACCESS   502 /* Access to server denied */
 
#define ERR_FAULT   503 /* Program fault, command not performed */
 
#define ERR_MOTD   503 /* No news motd file */
 
#define ERR_COMPRESS_ALG   503 /* Compression algorithm not supported */
 
#define ERR_AUTHBAD   580 /* Authorization Failed */
 
#define NNTP_STRLEN   512
 
#define NNTP_GRPLEN   497
 

Enumerations

enum  f_type { OVER_T_ERROR, OVER_T_INT, OVER_T_STRING, OVER_T_FSTRING }
 
enum  extension_type { NONE, CAPABILITIES, BROKEN }
 
enum  sasl_types {
  SASL_NONE = 0, SASL_PLAIN = 1 << 0, SASL_CRAM_MD5 = 1 << 1, SASL_DIGEST_MD5 = 1 << 2,
  SASL_GSSAPI = 1 << 3, SASL_EXTERNAL = 1 << 4, SASL_OTP = 1 << 5, SASL_NTLM = 1 << 6,
  SASL_LOGIN = 1 << 7
}
 
enum  c_algorithms { COMPRESS_NONE, COMPRESS_DEFLATE }
 

Macro Definition Documentation

◆ CONT_POST

#define CONT_POST   340 /* Continue to post article */

Definition at line 118 of file nntplib.h.

◆ CONT_XFER

#define CONT_XFER   335 /* Continue to send article */

Definition at line 117 of file nntplib.h.

◆ ERR_ACCESS

#define ERR_ACCESS   502 /* Access to server denied */

Definition at line 146 of file nntplib.h.

◆ ERR_AUTHBAD

#define ERR_AUTHBAD   580 /* Authorization Failed */

Definition at line 150 of file nntplib.h.

◆ ERR_AUTHFAIL

#define ERR_AUTHFAIL   481 /* Authentication failed/rejected */

Definition at line 140 of file nntplib.h.

◆ ERR_AUTHSEQ

#define ERR_AUTHSEQ   482 /* Authentication commands issued out of sequence or SASL protocol error */

Definition at line 141 of file nntplib.h.

◆ ERR_CMDSYN

#define ERR_CMDSYN   501 /* Command syntax error */

Definition at line 145 of file nntplib.h.

◆ ERR_COMMAND

#define ERR_COMMAND   500 /* Command not recognized */

Definition at line 144 of file nntplib.h.

◆ ERR_COMPRESS

#define ERR_COMPRESS   403 /* Unable to activate compression */

Definition at line 125 of file nntplib.h.

◆ ERR_COMPRESS_ALG

#define ERR_COMPRESS_ALG   503 /* Compression algorithm not supported */

Definition at line 149 of file nntplib.h.

◆ ERR_ENCRYPT

#define ERR_ENCRYPT   483 /* encrpytion required */

Definition at line 142 of file nntplib.h.

◆ ERR_FAULT

#define ERR_FAULT   503 /* Program fault, command not performed */

Definition at line 147 of file nntplib.h.

◆ ERR_GOODBYE

#define ERR_GOODBYE   400 /* Have to hang up for some reason */

Definition at line 123 of file nntplib.h.

◆ ERR_GOTIT

#define ERR_GOTIT   435 /* Already got that article, don't send */

Definition at line 134 of file nntplib.h.

◆ ERR_MOTD

#define ERR_MOTD   503 /* No news motd file */

Definition at line 148 of file nntplib.h.

◆ ERR_NCING

#define ERR_NCING   412 /* Not currently in newsgroup */

Definition at line 127 of file nntplib.h.

◆ ERR_NOART

#define ERR_NOART   430 /* No such article at all */

Definition at line 133 of file nntplib.h.

◆ ERR_NOARTIG

#define ERR_NOARTIG   423 /* No such article in this group */

Definition at line 132 of file nntplib.h.

◆ ERR_NOAUTH

#define ERR_NOAUTH   480 /* authorization required for command */

Definition at line 139 of file nntplib.h.

◆ ERR_NOCRNT

#define ERR_NOCRNT   420 /* No current article selected */

Definition at line 129 of file nntplib.h.

◆ ERR_NOGROUP

#define ERR_NOGROUP   411 /* No such newsgroup */

Definition at line 126 of file nntplib.h.

◆ ERR_NONEXT

#define ERR_NONEXT   421 /* No next article in this group */

Definition at line 130 of file nntplib.h.

◆ ERR_NOPOST

#define ERR_NOPOST   440 /* Posting not allowed */

Definition at line 137 of file nntplib.h.

◆ ERR_NOPREV

#define ERR_NOPREV   422 /* No previous article in this group */

Definition at line 131 of file nntplib.h.

◆ ERR_POSTFAIL

#define ERR_POSTFAIL   441 /* Posting failed */

Definition at line 138 of file nntplib.h.

◆ ERR_STATE

#define ERR_STATE   401 /* The client must change the state of the connection */

Definition at line 124 of file nntplib.h.

◆ ERR_XFERFAIL

#define ERR_XFERFAIL   436 /* Transfer failed */

Definition at line 135 of file nntplib.h.

◆ ERR_XFERRJCT

#define ERR_XFERRJCT   437 /* Article rejected, don't resend */

Definition at line 136 of file nntplib.h.

◆ INF_CAPABILITIES

#define INF_CAPABILITIES   101 /* Capability list follows */

Definition at line 87 of file nntplib.h.

◆ INF_DATE

#define INF_DATE   111 /* yyyymmddhhmmss Server date and time */

Definition at line 88 of file nntplib.h.

◆ INF_HELP

#define INF_HELP   100 /* Help text on way */

Definition at line 86 of file nntplib.h.

◆ NEED_AUTHDATA

#define NEED_AUTHDATA   381 /* <type> authorization data required */

Definition at line 120 of file nntplib.h.

◆ NEED_AUTHDATA_SASL

#define NEED_AUTHDATA_SASL   383 /* continue with SASL exchange */

Definition at line 121 of file nntplib.h.

◆ NEED_AUTHINFO

#define NEED_AUTHINFO   380 /* authorization is required */

Definition at line 119 of file nntplib.h.

◆ NNTP_GRPLEN

#define NNTP_GRPLEN   497

Definition at line 159 of file nntplib.h.

◆ NNTP_SERVER_FILE

#define NNTP_SERVER_FILE   "/etc/nntpserver"

Definition at line 45 of file nntplib.h.

◆ NNTP_STRLEN

#define NNTP_STRLEN   512

Definition at line 155 of file nntplib.h.

◆ NNTP_TCP_NAME

#define NNTP_TCP_NAME   "nntp"

Definition at line 48 of file nntplib.h.

◆ NNTP_TCP_PORT

#define NNTP_TCP_PORT   "119"

Definition at line 49 of file nntplib.h.

◆ NNTP_TRY_RECONNECT

#define NNTP_TRY_RECONNECT   2

Definition at line 54 of file nntplib.h.

◆ OK_ARTICLE

#define OK_ARTICLE   220 /* Article (head & body) follows */

Definition at line 99 of file nntplib.h.

◆ OK_AUTH

#define OK_AUTH   281 /* Authorization (user/pass) ok */

Definition at line 112 of file nntplib.h.

◆ OK_AUTH_SASL

#define OK_AUTH_SASL   283 /* authentication accepted (with success data) */

Definition at line 115 of file nntplib.h.

◆ OK_AUTHSYS

#define OK_AUTHSYS   280 /* Authorization system ok */

Definition at line 111 of file nntplib.h.

◆ OK_BIN

#define OK_BIN   282 /* binary data follows */

Definition at line 113 of file nntplib.h.

◆ OK_BODY

#define OK_BODY   222 /* Body follows */

Definition at line 103 of file nntplib.h.

◆ OK_CANPOST

#define OK_CANPOST   200 /* Hello; you can post */

Definition at line 90 of file nntplib.h.

◆ OK_COMPRESS

#define OK_COMPRESS   206 /* Compression active */

Definition at line 94 of file nntplib.h.

◆ OK_EXTENSIONS

#define OK_EXTENSIONS   202 /* extensions supported follow */

Definition at line 92 of file nntplib.h.

◆ OK_GOODBYE

#define OK_GOODBYE   205 /* Closing connection */

Definition at line 93 of file nntplib.h.

◆ OK_GROUP

#define OK_GROUP   211 /* Group selected */

Definition at line 95 of file nntplib.h.

◆ OK_GROUPS

#define OK_GROUPS   215 /* Newsgroups follow */

Definition at line 96 of file nntplib.h.

◆ OK_HDR

#define OK_HDR   225 /* headers follow */

Definition at line 106 of file nntplib.h.

◆ OK_HEAD

#define OK_HEAD   221 /* Head follows */

Definition at line 100 of file nntplib.h.

◆ OK_LIST

#define OK_LIST   282 /* list follows */

Definition at line 114 of file nntplib.h.

◆ OK_MOTD

#define OK_MOTD   215 /* News motd follows */

Definition at line 97 of file nntplib.h.

◆ OK_NEWGROUPS

#define OK_NEWGROUPS   231 /* New newsgroups follow */

Definition at line 108 of file nntplib.h.

◆ OK_NEWNEWS

#define OK_NEWNEWS   230 /* New articles by message-id follow */

Definition at line 107 of file nntplib.h.

◆ OK_NOPOST

#define OK_NOPOST   201 /* Hello; you can't post */

Definition at line 91 of file nntplib.h.

◆ OK_NOTEXT

#define OK_NOTEXT   223 /* No text sent -- stat, next, last */

Definition at line 104 of file nntplib.h.

◆ OK_POSTED

#define OK_POSTED   240 /* Article posted successfully */

Definition at line 110 of file nntplib.h.

◆ OK_XFERED

#define OK_XFERED   235 /* Article transferred successfully */

Definition at line 109 of file nntplib.h.

◆ OK_XHDR

#define OK_XHDR   221 /* headers follow */

Definition at line 101 of file nntplib.h.

◆ OK_XOVER

#define OK_XOVER   224 /* .overview data follows */

Definition at line 105 of file nntplib.h.

◆ OK_XPAT

#define OK_XPAT   221 /* headers follow */

Definition at line 102 of file nntplib.h.

Enumeration Type Documentation

◆ c_algorithms

Enumerator
COMPRESS_NONE 
COMPRESS_DEFLATE 

Definition at line 184 of file nntplib.h.

◆ extension_type

Enumerator
NONE 
CAPABILITIES 
BROKEN 

Definition at line 171 of file nntplib.h.

◆ f_type

enum f_type
Enumerator
OVER_T_ERROR 
OVER_T_INT 
OVER_T_STRING 
OVER_T_FSTRING 

Definition at line 164 of file nntplib.h.

◆ sasl_types

enum sasl_types
Enumerator
SASL_NONE 
SASL_PLAIN 
SASL_CRAM_MD5 
SASL_DIGEST_MD5 
SASL_GSSAPI 
SASL_EXTERNAL 
SASL_OTP 
SASL_NTLM 
SASL_LOGIN 

Definition at line 173 of file nntplib.h.