home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.umcs.maine.edu
/
2015-02-07.ftp.umcs.maine.edu.tar
/
ftp.umcs.maine.edu
/
pub
/
thesis
/
zhongy
/
snmp
/
snmp.shar
/
snmpbasic.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-11
|
730b
|
43 lines
/*
change a string to a oid struct
*/
struct oid textoid(char *str);
/*
send snmp package
receive snmp package
Both in straight buff
*/
void snmp_send_recv(char *hostname,int len,unsigned char *buff,unsigned char *buff_in);
/*
read mib.txt file
put all "name, obj, type " in an array of structure snbentry
return: the number of mib items in the MIB.TXT file
*/
int init_mib();
/*
give a snbentry struct of a name
*/
struct snbentry get_struct(char *name);
/*
procedure: give the struct snbentry according to the "name"
"name": is an instance, it can be single, it can be a variable inside a
table
"
So, we can know its value
*/
struct snbentry get_value(char *name,char *hostname);