diff options
author | Clint Adams <clint@users.sourceforge.net> | 2001-09-08 21:09:55 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2001-09-08 21:09:55 +0000 |
commit | b554563ece82a257b02ca1c96e6783fa155fd0ea (patch) | |
tree | f313216867ff32bc6126784d05568c0a542cca5f /Src/Modules/tcp.h | |
parent | 199bccab75dc3dca51418bb958d9a083d5c05130 (diff) | |
download | zsh-b554563ece82a257b02ca1c96e6783fa155fd0ea.tar.gz zsh-b554563ece82a257b02ca1c96e6783fa155fd0ea.tar.xz zsh-b554563ece82a257b02ca1c96e6783fa155fd0ea.zip |
15762: introduce ztcp builtin
Diffstat (limited to 'Src/Modules/tcp.h')
-rw-r--r-- | Src/Modules/tcp.h | 20 |
1 files changed, 12 insertions, 8 deletions
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" |