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

📄 funchand.h

📁 基于单片机的 snmp协议解析的一些原代码 给有用的 同行
💻 H
字号:
//  Copyright (c) 1996  Federal Highway Administration
//
//  This software has been developed for the Federal Highway Administration
//  by Viggen Corporation under contract with Oak Ridge National Lab.
//
//  Permission to use, copy, and distribute this software for any purpose
//  without fee is hereby granted, provided that the above copyright notice
//  appears in all copies and that both the copyright and this permission notice
//  appear in the supporting documentation.
//
//  Permission to modify this software is granted provided that the above
//  copyright and this permission notice appears in the modified software.
//
//  This software is provided "as is" with no warranty expressed or implied.
//
//  For additional information, please go to the Web site www.ntcip.org.
//
/*******************************************************************************
 *
 * Copyright (c) 1997 Viggen Corporation
 *
 * Permission to use, copy, and distribute this software for any purpose
 * without fee is hereby granted, provided that this copyright notice
 * appears in all copies and this permission notice appears in the
 * supporting documentation.
 *
 * Permission to modify this software is granted provided that the above
 * copyright and this permission notice appears in the modified software.
 *
 ******************************************************************************/


 /*********************************************
 *
 * funchand.h
 *
 * 9/29/97		Glenn Pruitt
 *********************************************/

//funchand.h
//function prototypes for function handler routines

struct ARGUMENT *fh_outfile(struct ARGUMENT *arglist, struct SYTAB *st);
struct ARGUMENT *fh_out(struct ARGUMENT *arglist, struct SYTAB *st);
struct ARGUMENT *fh_infile(struct ARGUMENT *arglist, struct SYTAB *st);
struct ARGUMENT *fh_inuser(struct ARGUMENT *arglist);
struct ARGUMENT *fh_invar(struct ARGUMENT *arglist, struct SYTAB *st);

struct ARGUMENT *fh_randomInt(struct ARGUMENT *arglist);
struct ARGUMENT *fh_randomFloat();
struct ARGUMENT *fh_sleep(struct ARGUMENT *arglist);
struct ARGUMENT *fh_intToFloat(struct ARGUMENT *arglist);
struct ARGUMENT *fh_intToString(struct ARGUMENT *arglist);
struct ARGUMENT *fh_stringToInt(struct ARGUMENT *arglist);
struct ARGUMENT *fh_floatToString(struct ARGUMENT *arglist);
struct ARGUMENT *fh_floor(struct ARGUMENT *arglist);
struct ARGUMENT *fh_ceiling(struct ARGUMENT *arglist);
struct ARGUMENT *fh_compare(struct ARGUMENT *arglist);
struct ARGUMENT *fh_copy(struct ARGUMENT *arglist,struct SYTAB *st);
struct ARGUMENT *fh_concat(struct ARGUMENT *arglist,struct SYTAB *st);
struct ARGUMENT *fh_beep(struct ARGUMENT *arglist);

struct ARGUMENT *fh_getError(struct ARGUMENT *arglist,struct SYTAB *st);

struct ARGUMENT *fh_getResponseValue(struct ARGUMENT *arglist,struct SYTAB *st);
struct ARGUMENT *fh_calcCRC(struct ARGUMENT *arglist);
struct ARGUMENT *fh_getNodeInfo(struct ARGUMENT *arglist,
	struct nodeInfo *node, char *lnn);
struct ARGUMENT *fh_getNodeObjects(struct ARGUMENT *arglist, char **olp);
struct ARGUMENT *fh_getInstance(struct ARGUMENT *arglist, char **olp);
struct ARGUMENT *fh_getNextInstance(struct ARGUMENT *arglist);

struct ARGUMENT *fh_getNodeName(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeSyntax(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeAccess(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeStatus(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeDescription(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeOID(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeValue(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeMin(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeMax(struct nodeInfo *node);
struct ARGUMENT *fh_getNodeTimestamp(struct nodeInfo *node);
struct ARGUMENT *fh_setNodeAsn1Syntax(struct ARGUMENT *arglist, struct nodeInfo *node);

struct ARGUMENT *fh_setField_pdu(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_classtype(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_community(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_AddressDrop(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_GroupAddress(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_SizeOfTheArray(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_arraylist(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_valuelist(struct ARGUMENT *arglist, struct mystruct *send);
struct ARGUMENT *fh_setField_asn1syntax(struct ARGUMENT *arglist, struct mystruct *send);

struct ARGUMENT *fh_getField_pdu(struct mystruct *recv);
struct ARGUMENT *fh_getField_classtype(struct mystruct *recv);
struct ARGUMENT *fh_getField_community(struct mystruct *recv);
struct ARGUMENT *fh_getField_AddressDrop(struct mystruct *recv);
struct ARGUMENT *fh_getField_GroupAddress(struct mystruct *recv);
struct ARGUMENT *fh_getField_SizeOfTheArray(struct mystruct *recv);
struct ARGUMENT *fh_getField_arraylist(struct ARGUMENT *arglist, struct mystruct *recv);
struct ARGUMENT *fh_getField_valuelist(struct ARGUMENT *arglist, struct mystruct *recv);
struct ARGUMENT *fh_getField_asn1syntax(struct ARGUMENT *arglist, struct mystruct *recv);

struct ARGUMENT *fh_sendGet(struct mystruct *send,
  	int _stdcall (* LineActivityInsert) (char * theMessage),
	int _stdcall (* EditByteStream) (pmppStruct *msg, char *header, char *trailer));

struct ARGUMENT *fh_sendGetNext(struct mystruct *send,
  	int _stdcall (* LineActivityInsert) (char * theMessage),
	int _stdcall (* EditByteStream) (pmppStruct *msg, char *header, char *trailer));
struct ARGUMENT *fh_sendSetDec(struct mystruct *send,
  	int _stdcall (* LineActivityInsert) (char * theMessage),
	int _stdcall (* EditByteStream) (pmppStruct *msg, char *header, char *trailer));
struct ARGUMENT *fh_sendSetNoDec(struct mystruct *send,
  	int _stdcall (* LineActivityInsert) (char * theMessage),
	int _stdcall (* EditByteStream) (pmppStruct *msg, char *header, char *trailer));
struct ARGUMENT *fh_sendSetAsc(struct mystruct *send,
  	int _stdcall (* LineActivityInsert) (char * theMessage),
	int _stdcall (* EditByteStream) (pmppStruct *msg, char *header, char *trailer));
struct ARGUMENT *fh_sendSetNoAsc(struct mystruct *send,
  	int _stdcall (* LineActivityInsert) (char * theMessage),
	int _stdcall (* EditByteStream) (pmppStruct *msg, char *header, char *trailer));

struct ARGUMENT *fh_checkProtocolMismatch(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidResponse(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkNoResponse(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkEncodingStyle(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkNoInstance(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkObjectMismatch(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidSequence(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidLength(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkScrambled(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidAddress(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidControl(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidCRC(struct ARGUMENT *arglist);
struct ARGUMENT *fh_checkInvalidIPI(struct ARGUMENT *arglist);

struct ARGUMENT *fh_clearErrorState(struct ARGUMENT *arglist);

⌨️ 快捷键说明

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