imapext-2007

diff src/osdep/tops-20/tcp_t20.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/osdep/tops-20/tcp_t20.h	Mon Sep 14 15:17:45 2009 +0900
     1.3 @@ -0,0 +1,65 @@
     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:	TOPS-20 TCP/IP 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:	1 August 1988
    1.29 + * Last Edited:	30 August 2006
    1.30 + */
    1.31 +
    1.32 +
    1.33 +/* Dedication:
    1.34 + * This file is dedicated with affection to the TOPS-20 operating system, which
    1.35 + * set standards for user and programmer friendliness that have still not been
    1.36 + * equaled by more `modern' operating systems.
    1.37 + * Wasureru mon ka!!!!
    1.38 + */
    1.39 +
    1.40 +/* TCP input buffer */
    1.41 +
    1.42 +#define BUFLEN 8192
    1.43 +
    1.44 +/* TCP I/O stream (must be before osdep.h is included) */
    1.45 +
    1.46 +#define TCPSTREAM struct tcp_stream
    1.47 +TCPSTREAM {
    1.48 +  char *host;			/* host name */
    1.49 +  unsigned long port;		/* port number */
    1.50 +  char *localhost;		/* local host name */
    1.51 +  int jfn;			/* jfn for connection */
    1.52 +  char ibuf[BUFLEN];		/* input buffer */
    1.53 +};
    1.54 +
    1.55 +
    1.56 +/* All of these should be in JSYS.H, but just in case... */
    1.57 +
    1.58 +#ifndef _GTHPN
    1.59 +#define _GTHPN 12
    1.60 +#endif
    1.61 +
    1.62 +#ifndef _GTDPN
    1.63 +#define _GTDPN 12
    1.64 +#endif
    1.65 +
    1.66 +#ifndef GTDOM
    1.67 +#define GTDOM (FLD (1,JSYS_CLASS) | 501
    1.68 +#endif

UW-IMAP'd extensions by yuuji