📄 tnbuf.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Name: Fusion 6.52 Fusion 6.51 $* $Date: 2001/09/20 10:38:58 $* $Source: M:/psisrc/ftp/incl/rcs/tnbuf.h $* $Revision: 1.4 $*************************************************************************** File Description:****************************************************************************/#ifndef _TNBUF_#define _TNBUF_#define FTP_BUFSIZ 512#define TNB_CLOSED 2#define TNB_NSEL_ON 8typedef struct tnbuf { int tn_fd; /* socket descriptor */ u16 tn_flags; /* see below */ u8 * tn_nxt; /* next character pointer */ u8 * tn_lst; /* last character pointer */ u8 tn_buf[FTP_BUFSIZ]; /* da goods */ } tnbuf;#define TIO_INCOMING 0x8typedef struct tnio { struct tnbuf * nibuf; /* network input */ struct tnbuf * nobuf; /* network output */ int (*send_func)(struct tnio * tniop); int (*recv_func)(struct tnio * tniop); int errors; /* number of error encountered */ u16 flags; /* see below */ } tnio;#define tnbcount(tb) ((tb)->tn_lst - (tb)->tn_nxt)#endif /* _TNBUF_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -