diff options
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" |