n2nc::FilterAdapter Class Reference

This class provides the filter chain to be applied to a Socket. More...

#include <filteradapter.h>

Inheritance diagram for n2nc::FilterAdapter:

Inheritance graph
[legend]
Collaboration diagram for n2nc::FilterAdapter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FilterAdapter (net::Socket &socket)
bool addFilter (Filter *filter)
bool delFilter (Filter *filter)
virtual int send (void *buf, size_t len)
virtual int recv (void *buf, size_t len)
size_t getMaxOverHead ()


Detailed Description

This class provides the filter chain to be applied to a Socket.

Author:
fabsoft <fabsoft@gmail.com>

Definition at line 14 of file filteradapter.h.


Member Function Documentation

int n2nc::FilterAdapter::send ( void *  buf,
size_t  len 
) [virtual]

Send data buf to remote peer

Reimplemented from n2nc::net::Socket.

Definition at line 27 of file filteradapter.cpp.

References n2nc::Filter::egress(), n2nc::Filter::FILTER_CONTINUE, n2nc::Filter::FILTER_DROP, n2nc::Filter::FILTER_RETURN, and n2nc::net::Socket::send().

Here is the call graph for this function:

int n2nc::FilterAdapter::recv ( void *  buf,
size_t  len 
) [virtual]

Receive len leght data from remote peer and store it to buf

Reimplemented from n2nc::net::Socket.

Definition at line 70 of file filteradapter.cpp.

References n2nc::Filter::FILTER_CONTINUE, n2nc::Filter::FILTER_DROP, n2nc::Filter::FILTER_RETURN, n2nc::Filter::ingress(), and n2nc::net::Socket::recv().

Here is the call graph for this function:


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

Generated on Mon Oct 6 19:32:24 2008 for n2nc by  doxygen 1.5.5