imapext-2007
diff src/c-client/nntp.h @ 0:ada5e610ab86
imap-2007e
author | yuuji@gentei.org |
---|---|
date | Mon, 14 Sep 2009 15:17:45 +0900 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/c-client/nntp.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,56 @@ 1.4 +/* ======================================================================== 1.5 + * Copyright 1988-2006 University of Washington 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * 1.14 + * ======================================================================== 1.15 + */ 1.16 + 1.17 +/* 1.18 + * Program: Network News Transfer Protocol (NNTP) routines 1.19 + * 1.20 + * Author: Mark Crispin 1.21 + * Networks and Distributed Computing 1.22 + * Computing & Communications 1.23 + * University of Washington 1.24 + * Administration Building, AG-44 1.25 + * Seattle, WA 98195 1.26 + * Internet: MRC@CAC.Washington.EDU 1.27 + * 1.28 + * Date: 10 February 1992 1.29 + * Last Edited: 30 August 2006 1.30 + */ 1.31 + 1.32 +/* Constants (should be in nntp.c) */ 1.33 + 1.34 +#define NNTPTCPPORT (long) 119 /* assigned TCP contact port */ 1.35 + 1.36 + 1.37 +/* NNTP open options 1.38 + * For compatibility with the past, NOP_DEBUG must always be 1. 1.39 + */ 1.40 + 1.41 +#define NOP_DEBUG (long) 0x1 /* debug protocol negotiations */ 1.42 +#define NOP_READONLY (long) 0x2 /* read-only open */ 1.43 +#define NOP_TRYSSL (long) 0x4 /* try SSL first */ 1.44 + /* reserved for application use */ 1.45 +#define NOP_RESERVED (unsigned long) 0xff000000 1.46 + 1.47 + 1.48 +/* Compatibility support names */ 1.49 + 1.50 +#define nntp_open(hostlist,options) \ 1.51 + nntp_open_full (NIL,hostlist,"nntp",NIL,options) 1.52 + 1.53 + 1.54 +/* Function prototypes */ 1.55 + 1.56 +SENDSTREAM *nntp_open_full (NETDRIVER *dv,char **hostlist,char *service, 1.57 + unsigned long port,long options); 1.58 +SENDSTREAM *nntp_close (SENDSTREAM *stream); 1.59 +long nntp_mail (SENDSTREAM *stream,ENVELOPE *msg,BODY *body);