From b554563ece82a257b02ca1c96e6783fa155fd0ea Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 8 Sep 2001 21:09:55 +0000 Subject: 15762: introduce ztcp builtin --- Src/Modules/tcp.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Src/Modules/tcp.h') diff --git a/Src/Modules/tcp.h b/Src/Modules/tcp.h index 53e96761f..94efb255a 100644 --- a/Src/Modules/tcp.h +++ b/Src/Modules/tcp.h @@ -63,21 +63,25 @@ #endif union tcp_sockaddr { - struct sockaddr a; - struct sockaddr_in in; + struct sockaddr a; + struct sockaddr_in in; #ifdef SUPPORT_IPV6 - struct sockaddr_in6 in6; + struct sockaddr_in6 in6; #endif }; +typedef struct tcp_session *Tcp_session; + +#define ZTCP_ZFTP 16 + struct tcp_session { - int fd; /* file descriptor */ - union tcp_sockaddr sock; /* local address */ - union tcp_sockaddr peer; /* remote address */ + int fd; /* file descriptor */ + union tcp_sockaddr sock; /* local address */ + union tcp_sockaddr peer; /* remote address */ + Tcp_session next; + int flags; }; -typedef struct tcp_session *Tcp_session; - #include "tcp.mdh" #include "tcp.pro" -- cgit 1.4.1