File: myserver.h

package info (click to toggle)
inn 1%3A1.7.2q-52
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 9,256 kB
  • sloc: ansic: 37,984; perl: 11,945; sh: 3,968; makefile: 2,009; awk: 1,567; yacc: 686; tcl: 85; csh: 70
file content (35 lines) | stat: -rw-r--r-- 823 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*  $Revision: 1.4 $
**
**  Replacement "server.h" file for remote rn.
*/


#if	!defined(NNTP_CLASS_OK)
/*
**  These are defined in INN <nntp.h>.  Rather then require this file
**  to include that file, we duplicate the relevent lines here.
*/
#define NNTP_NOSUCHGROUP_VAL		411
#define NNTP_CLASS_OK			'2'
#define NNTP_CLASS_ERROR		'4'
#define NNTP_CLASS_FATAL		'5'

#define NNTP_SYNTAX_VAL			501
#define NNTP_STRLEN			512
#endif	/* !defined(NNTP_CLASS_OK) */


#define CHAR_OK			NNTP_CLASS_OK
#define CHAR_ERR		NNTP_CLASS_ERROR
#define CHAR_FATAL		NNTP_CLASS_FATAL
#define ERR_NOGROUP		NNTP_NOSUCHGROUP_VAL
#define ERR_CMDSYN		NNTP_SYNTAX_VAL


extern char	*getserverbyfile();
extern int	get_server();
extern int	server_init();
extern void	close_server();
extern void	put_server();

extern char	ser_line[NNTP_STRLEN + 2];