1
/* ========================================================================
2
* Copyright 1988-2006 University of Washington
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
8
* http://www.apache.org/licenses/LICENSE-2.0
11
* ========================================================================
15
* Program: Winsock TCP/IP routines
17
* Author: Mike Seibel from Unix version by Mark Crispin
18
* Computing & Communications
19
* University of Washington
20
* Administration Building, AG-44
22
* Internet: MRC@CAC.Washington.EDU
25
* Last Edited: 30 August 2006
28
/* TCP input buffer -- must be large enough to prevent overflow */
30
#define BUFLEN 16384 /* 32768 causes stdin read() to barf */
37
/* TCP I/O stream (must be before osdep.h is included) */
39
#define TCPSTREAM struct tcp_stream
41
char *host; /* host name */
42
char *remotehost; /* remote host name */
43
unsigned long port; /* port number */
44
char *localhost; /* local host name */
45
SOCKET tcpsi; /* tcp socket */
46
SOCKET tcpso; /* tcp socket */
47
long ictr; /* input counter */
48
char *iptr; /* input pointer */
49
char ibuf[BUFLEN]; /* input buffer */