File: myserver.h

package info (click to toggle)
inn2 2.2.2.2000.01.31-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,424 kB
  • ctags: 5,722
  • sloc: ansic: 61,219; perl: 9,939; sh: 5,644; makefile: 1,695; awk: 1,567; yacc: 1,548; lex: 249; tcl: 3
file content (35 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
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.1.1.1 $
**
**  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];