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

📄 imp_igmphost.h

📁 路由器协议平台igmp协议设计实现源码。
💻 H
字号:
/*
 $Log:: /OEM Source Code/igmp/imp_igmphost.h                                                       $
 * 
 * 1     4/23/98 9:53p Release Engineer
 * Initial release
 * IGMP v4.1.0
 */
/************************************************************************/
/*  Copyright (C) 1997-1998 RouterWare, Inc.                            */
/*  Unpublished - rights reserved under the Copyright Laws of the       */
/*  United States.  Use, duplication, or disclosure by the              */
/*  Government is subject to restrictions as set forth in               */
/*  subparagraph (c)(1)(ii) of the Rights in Technical Data and         */
/*  Computer Software clause at 252.227-7013.                           */
/*  RouterWare, Inc., 3961 MacArthur Blvd. Suite 212, Newport Beach, CA */
/************************************************************************/
#define __IMPORT_IGMP_HOST__

#define IGMP_HOST_API_VERSION 0x00000001L

/********************************************************************************************/

typedef struct IGMP_HOST_IMPORT_TABLE
{
	ULONG api_version;

	char *cptr_name;

#ifdef __WINROUTER__
	char *cptr_name_routerware_control;
	ULONG (*fptr_routerware_control) (enum ROUTERWARE_CONTROL_OPERATION command,...);
#endif /*__WINROUTER__*/

	char *cptr_name_igmp_host_join_group;
	enum IGMP_HOST_API_ERROR (*fptr_igmp_host_join_group) (UINT, ULONG group);

	char *cptr_name_igmp_host_leave_group;
	enum IGMP_HOST_API_ERROR (*fptr_igmp_host_leave_group) (UINT, ULONG group);

} IGMP_HOST_IMPORT_TABLE;

/********************************************************************************************/

#ifdef __EXPORT_TABLE__

#ifndef GLOBAL_FILE

GLOBAL IGMP_HOST_IMPORT_TABLE igmp_host_export_table;

#else

IGMP_HOST_IMPORT_TABLE igmp_host_export_table =
{
	{IGMP_HOST_API_VERSION},

	{"IGMP HOST"},

#ifdef __WINROUTER__
	{"routerware_control"},
	{ routerware_control },
#endif /*__WINROUTER__*/

	{"igmp_host_join_group"},
	{ igmp_host_join_group },

	{"igmp_host_leave_group"},
	{ igmp_host_leave_group }
};

#endif /*GLOBAL_FILE*/

#endif /*__EXPORT_TABLE__*/

/********************************************************************************************/

#if defined (__IMPORT_TABLE__)

#if defined (__WINROUTER__)
#if defined (_IGMP_HOST_H_)
	#define routerware_control 						winrouter_import_table.sptr_igmp_host->fptr_routerware_control
#endif /* _IGMP_HOST_H_ */
#endif

	#define igmp_host_join_group						winrouter_import_table.sptr_igmp_host->fptr_igmp_host_join_group
	#define igmp_host_leave_group 					winrouter_import_table.sptr_igmp_host->fptr_igmp_host_leave_group
#endif

⌨️ 快捷键说明

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