3 #include "transport.hpp"
6 namespace dangerous {
namespace snmp {
namespace transport {
41 bool send(
const std::vector<char>& bytes );
42 std::vector<char> receive(
const std::chrono::milliseconds& timeout );
std::string port
This is the port on which to connect.
Definition: basicsockettransport.hpp:72
virtual int protocolNumber() const
When creating a socket, this is called to set the protocol that should be passed to the call...
virtual void connect()
This instructs the transport to connect to its endpoint.
virtual bool isConnected()
This returns whether or not the transport is connected.
The Transport class represents an abstraction of the transport mechanism behind SNMP.
Definition: transport.hpp:24
virtual void disconnect()
This shuts down the transport (if it was already connected).
virtual int socketOptions() const
When creating a socket, this is called to set the options that should be passed to the call...
This is the base class of both the UDP and TCP transports.
Definition: basicsockettransport.hpp:16
int socketHandle
This is the socket handle.
Definition: basicsockettransport.hpp:63
std::string address
This is the address to which to connect.
Definition: basicsockettransport.hpp:68