net-snmp 5.7
snmpTCPDomain.h
00001 #ifndef _SNMPTCPDOMAIN_H
00002 #define _SNMPTCPDOMAIN_H
00003 
00004 #if HAVE_NETINET_IN_H
00005 #include <netinet/in.h>
00006 #endif
00007 
00008 config_require(IPv4Base)
00009 config_require(SocketBase)
00010 config_require(TCPBase)
00011 
00012 #ifdef NETSNMP_TRANSPORT_TCP_DOMAIN
00013 
00014 #include <net-snmp/library/snmpIPv4BaseDomain.h>
00015 
00016 #ifdef __cplusplus
00017 extern          "C" {
00018 #endif
00019 
00020 /*
00021  * The SNMP over TCP over IPv4 transport domain is identified by
00022  * transportDomainTcpIpv4 as defined in RFC 3419.
00023  */
00024 
00025 #define TRANSPORT_DOMAIN_TCP_IP         1,3,6,1,2,1,100,1,5
00026 NETSNMP_IMPORT oid netsnmp_snmpTCPDomain[];
00027 
00028 netsnmp_transport *netsnmp_tcp_transport(struct sockaddr_in *addr, int local);
00029 
00030 /*
00031  * "Constructor" for transport domain object.  
00032  */
00033 
00034 void            netsnmp_tcp_ctor(void);
00035 
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039 #endif                          /*NETSNMP_TRANSPORT_TCP_DOMAIN */
00040 
00041 #endif/*_SNMPTCPDOMAIN_H*/