3 #include "dangerous/snmp/exception.hpp"
5 #include "basicsockettransport.hpp"
8 namespace dangerous {
namespace snmp {
namespace transport {
15 const unsigned int MINIMUM_MESSAGE_SIZE = 484;
16 const unsigned int RECOMMENDED_MESSAGE_SIZE = 1472;
28 Udp( std::weak_ptr<Context::PrivateData> context,
const std::string& connectionString )
throw(
Exception );
Udp(std::weak_ptr< Context::PrivateData > context, const std::string &connectionString)
This instantiates a new UDP transport instance.
virtual int protocolNumber() const
When creating a socket, this is called to set the protocol that should be passed to the call...
This is the base class of both the UDP and TCP transports.
Definition: basicsockettransport.hpp:16
This is the (typical) UDP transport.
Definition: udp.hpp:13
virtual int socketOptions() const
When creating a socket, this is called to set the options that should be passed to the call...
This defines the base exception class for Dangerous SNMP.
Definition: exception.hpp:10