libtins  4.0
Public Types | Public Member Functions | List of all members
Tins::Crypto::DecrypterProxy< Functor, Decrypter > Class Template Reference

Pluggable decrypter object which can be used to decrypt data on sniffing sessions. More...

#include <crypto.h>

Public Types

typedef Functor functor_type
 
typedef Decrypter decrypter_type
 

Public Member Functions

 DecrypterProxy (const functor_type &func, const decrypter_type &decr=decrypter_type())
 Constructs an object from a functor and a decrypter. More...
 
decrypter_typedecrypter ()
 Retrieves a reference to the decrypter object.
 
const decrypter_typedecrypter () const
 Retrieves a const reference to the decrypter object.
 
bool operator() (PDU &pdu)
 The operator() which decrypts packets and forwards them to the functor.
 

Detailed Description

template<typename Functor, typename Decrypter>
class Tins::Crypto::DecrypterProxy< Functor, Decrypter >

Pluggable decrypter object which can be used to decrypt data on sniffing sessions.

This class holds a decrypter object and a functor, and implements a suitable operator() to be used on BaseSniffer::sniff_loop, which decrypts packets and forwards them to the given functor.

Member Typedef Documentation

template<typename Functor, typename Decrypter>
typedef Decrypter Tins::Crypto::DecrypterProxy< Functor, Decrypter >::decrypter_type

The type of the decrypter object.

template<typename Functor, typename Decrypter>
typedef Functor Tins::Crypto::DecrypterProxy< Functor, Decrypter >::functor_type

The type of the functor object.

Constructor & Destructor Documentation

template<typename Functor , typename Decrypter >
Tins::Crypto::DecrypterProxy< Functor, Decrypter >::DecrypterProxy ( const functor_type func,
const decrypter_type decr = decrypter_type() 
)

Constructs an object from a functor and a decrypter.

Parameters
funcThe functor to be used to forward decrypted packets.
decrypterThe decrypter which will be used to decrypt packets

The documentation for this class was generated from the following file: