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

📄 ntp_iocompletionport.h

📁 Network time protocol source study
💻 H
字号:
#if !defined __ntp_iocompletionport_h# define __ntp_iocompletionport_h#include "ntp.h"# if defined(HAVE_IO_COMPLETION_PORT)struct IoCompletionInfo;struct refclockio;typedef int IoCompletionInfoFunction(DWORD Key, struct IoCompletionInfo *, DWORD Bytes);typedef struct IoCompletionInfo {	OVERLAPPED			overlapped;	IoCompletionInfoFunction *	iofunction;} IoCompletionInfo;extern	void	init_io_completion_port (void);extern	void	uninit_io_completion_port (void);extern	int	io_completion_port_add_clock_io	(struct refclockio * /*rio */);extern	void	io_completion_port_add_socket (struct interface *);extern	DWORD	io_completion_port_sendto (struct interface *, struct pkt *, int, struct sockaddr_in*);static int OnSocketRecv(DWORD, struct IoCompletionInfo *, DWORD);static int QueueIORead( struct refclockio * );static int OnIoReadComplete(DWORD, struct IoCompletionInfo *, DWORD);# endif#endif

⌨️ 快捷键说明

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