#ifndef __SNMPSOCK_H_
#define __SNMPSOCK_H_

#include <pthread.h>

class SNMP_socket {
  int sock;
  int timeout;
  int retries;
  int port;
  pthread_t listening_thr;
public:
  SNMP_socket(int timeout, int retries, int port=0);
  ~SNMP_socket();
  unsigned char *call(int len,int type,char *addr,char *data,int &buflen);
};

#endif


syntax highlighted by Code2HTML, v. 0.9.1