rev |
line source |
yuuji@0
|
1 /* ========================================================================
|
yuuji@0
|
2 * Copyright 1988-2006 University of Washington
|
yuuji@0
|
3 *
|
yuuji@0
|
4 * Licensed under the Apache License, Version 2.0 (the "License");
|
yuuji@0
|
5 * you may not use this file except in compliance with the License.
|
yuuji@0
|
6 * You may obtain a copy of the License at
|
yuuji@0
|
7 *
|
yuuji@0
|
8 * http://www.apache.org/licenses/LICENSE-2.0
|
yuuji@0
|
9 *
|
yuuji@0
|
10 *
|
yuuji@0
|
11 * ========================================================================
|
yuuji@0
|
12 */
|
yuuji@0
|
13
|
yuuji@0
|
14 /*
|
yuuji@0
|
15 * Program: Network News Transfer Protocol (NNTP) routines
|
yuuji@0
|
16 *
|
yuuji@0
|
17 * Author: Mark Crispin
|
yuuji@0
|
18 * Networks and Distributed Computing
|
yuuji@0
|
19 * Computing & Communications
|
yuuji@0
|
20 * University of Washington
|
yuuji@0
|
21 * Administration Building, AG-44
|
yuuji@0
|
22 * Seattle, WA 98195
|
yuuji@0
|
23 * Internet: MRC@CAC.Washington.EDU
|
yuuji@0
|
24 *
|
yuuji@0
|
25 * Date: 10 February 1992
|
yuuji@0
|
26 * Last Edited: 30 August 2006
|
yuuji@0
|
27 */
|
yuuji@0
|
28
|
yuuji@0
|
29 /* Constants (should be in nntp.c) */
|
yuuji@0
|
30
|
yuuji@0
|
31 #define NNTPTCPPORT (long) 119 /* assigned TCP contact port */
|
yuuji@0
|
32
|
yuuji@0
|
33
|
yuuji@0
|
34 /* NNTP open options
|
yuuji@0
|
35 * For compatibility with the past, NOP_DEBUG must always be 1.
|
yuuji@0
|
36 */
|
yuuji@0
|
37
|
yuuji@0
|
38 #define NOP_DEBUG (long) 0x1 /* debug protocol negotiations */
|
yuuji@0
|
39 #define NOP_READONLY (long) 0x2 /* read-only open */
|
yuuji@0
|
40 #define NOP_TRYSSL (long) 0x4 /* try SSL first */
|
yuuji@0
|
41 /* reserved for application use */
|
yuuji@0
|
42 #define NOP_RESERVED (unsigned long) 0xff000000
|
yuuji@0
|
43
|
yuuji@0
|
44
|
yuuji@0
|
45 /* Compatibility support names */
|
yuuji@0
|
46
|
yuuji@0
|
47 #define nntp_open(hostlist,options) \
|
yuuji@0
|
48 nntp_open_full (NIL,hostlist,"nntp",NIL,options)
|
yuuji@0
|
49
|
yuuji@0
|
50
|
yuuji@0
|
51 /* Function prototypes */
|
yuuji@0
|
52
|
yuuji@0
|
53 SENDSTREAM *nntp_open_full (NETDRIVER *dv,char **hostlist,char *service,
|
yuuji@0
|
54 unsigned long port,long options);
|
yuuji@0
|
55 SENDSTREAM *nntp_close (SENDSTREAM *stream);
|
yuuji@0
|
56 long nntp_mail (SENDSTREAM *stream,ENVELOPE *msg,BODY *body);
|