imapext-2007

view src/osdep/nt/tcp_nt.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* ========================================================================
2 * Copyright 1988-2006 University of Washington
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *
11 * ========================================================================
12 */
14 /*
15 * Program: Winsock TCP/IP routines
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 11 April 1989
26 * Last Edited: 30 August 2006
27 */
29 /* TCP input buffer -- must be large enough to prevent overflow */
31 #define BUFLEN 16384 /* 32768 causes stdin read() to barf */
33 #include <winsock2.h>
34 #include <ws2tcpip.h>
35 #undef ERROR /* quell conflicting definition diagnostic */
38 /* TCP I/O stream (must be before osdep.h is included) */
40 #define TCPSTREAM struct tcp_stream
41 TCPSTREAM {
42 char *host; /* host name */
43 char *remotehost; /* remote host name */
44 unsigned long port; /* port number */
45 char *localhost; /* local host name */
46 SOCKET tcpsi; /* tcp socket */
47 SOCKET tcpso; /* tcp socket */
48 long ictr; /* input counter */
49 char *iptr; /* input pointer */
50 char ibuf[BUFLEN]; /* input buffer */
51 };

UW-IMAP'd extensions by yuuji