⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transmitbuff.h

📁 Network time protocol source study
💻 H
字号:
#if !defined __transmitbuff_h#define __transmitbuff_h#include "ntp.h"#if defined HAVE_IO_COMPLETION_PORT# include "ntp_iocompletionport.h"#endif#define TRANSMIT_BUF_LENGTH 1024/* * Format of a transmitbuf.  These are used by the asynchronous receive * routine to store incoming packets and related information. */typedef struct transmitbuf {	struct transmitbuf *next;		/* next buffer in chain */#if defined HAVE_IO_COMPLETION_PORT        IoCompletionInfo	iocompletioninfo;	WSABUF			wsabuf;#endif	/*	 * union {	 *	struct	pkt		pkt;	 *	struct	ntp_control	ctlpkt;	 *} pkt;	 */	char pkt[512];} transmitbuf;extern	void	init_transmitbuff	P((void));/* freetransmitbuf - make a single transmitbuf available for reuse */extern	void	free_transmit_buffer P((struct transmitbuf *));/*  Get a free buffer (typically used so an async *  read can directly place data into the buffer * *  The buffer is removed from the free list. Make sure *  you put it back with freetransmitbuf() or  */extern	struct transmitbuf *get_free_transmit_buffer P((void));#endif /* defined __transmitbuff_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -