libtins  4.0
Public Member Functions | List of all members
Tins::IPv4ReassemblerProxy< Functor > Class Template Reference

#include <ip_reassembler.h>

Public Member Functions

 IPv4ReassemblerProxy (Functor func)
 
bool operator() (PDU &pdu)
 Tries to reassemble the packet and forwards it to the functor. More...
 

Detailed Description

template<typename Functor>
class Tins::IPv4ReassemblerProxy< Functor >

Proxy functor class that reassembles PDUs.

Constructor & Destructor Documentation

template<typename Functor >
Tins::IPv4ReassemblerProxy< Functor >::IPv4ReassemblerProxy ( Functor  func)
inline

Constructs the proxy from a functor object.

Parameters
funcThe functor object.

Member Function Documentation

template<typename Functor >
bool Tins::IPv4ReassemblerProxy< Functor >::operator() ( PDU pdu)
inline

Tries to reassemble the packet and forwards it to the functor.

Parameters
pduThe packet to process
Returns
true if the packet wasn't forwarded, otherwise the value returned by the functor.

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