Main Page Class Hierarchy Compound List File List Compound Members Examples

# usipp::RX Class Reference

`#include <RX.h>`

Inheritance diagram for usipp::RX:

List of all members.

## Public Methods
| RX ()
virtual | ~RX ()
virtual int | sniffpack (void *, size_t) = 0
virtual int | init_device (char *, int, size_t) = 0
virtual int | setfilter (char *) = 0
virtual int | timeout (struct timeval) = 0
virtual bool | timeout () = 0

## Detailed Description

Receiving object You can provide your own classes and register objects via register_rx(). You must provide at least the 3 functions below.

## Member Function Documentation

int usipp::RX::init_device ( | char * dev,
| int promisc,
| size_t snaplen )`[pure virtual]`

| Init a device before capturing Reimplemented in usipp::Pcap.

int usipp::RX::setfilter ( | char * filter )`[pure virtual]`

| Set a filter of what must be captured Reimplemented in usipp::Pcap.

int usipp::RX::sniffpack ( | void *,
| size_t )`[pure virtual]`

| Capture a packet from the network. At most a given len. Reimplemented in usipp::Pcap.

bool usipp::RX::timeout ( | )`[pure virtual]`

| RX derived class must also tell user when timeout occurs Reimplemented in usipp::Pcap.

int usipp::RX::timeout ( | struct timeval )`[pure virtual]`

| set a timeout Reimplemented in usipp::Pcap.

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

- RX.h