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 / snmpbasic.h < prev    next >
C/C++ Source or Header  |  1994-05-10  |  730b  |  43 lines

  1. /*
  2.   change a string to a oid struct
  3. */
  4. struct oid textoid(char *str);
  5.  
  6.  
  7. /*
  8.   send snmp package
  9.   receive snmp package
  10.   Both in straight buff
  11. */
  12. void snmp_send_recv(char *hostname,int len,unsigned char *buff,unsigned char *buff_in);
  13.  
  14.  
  15. /*
  16.   read mib.txt file
  17.   put all "name, obj, type " in an array of structure snbentry
  18.   return: the number of mib items in the MIB.TXT file
  19. */
  20.  
  21.  
  22. int init_mib();
  23.  
  24.  
  25. /*
  26.   give a snbentry struct of a name
  27. */
  28.  
  29. struct snbentry get_struct(char *name);
  30.  
  31.  
  32. /*
  33.   procedure: give the struct snbentry according to the "name"
  34.   "name": is an instance, it can be single, it can be a variable inside a
  35.           table
  36.   "
  37.  
  38.   So, we can know its value
  39. */
  40.  
  41. struct snbentry get_value(char *name,char *hostname);
  42.  
  43.