pcappp::Device Class Reference

#include <Device.h>

List of all members.

Public Member Functions

 Device (Device const &device)
 Creates a Device object as a copy of another.
std::vector< Address > const & get_addresses () const
 Gets the addresses associated to this device.
std::string const & get_description () const
 Gets a description of the device.
std::string const & get_name () const
 Gets the name of the device.
bool is_loopback () const
 Returns whether the device is a loopback one.
Deviceoperator= (Device const &device)
 Assigns another Device object's contents to this one.
virtual ~Device ()
 Destroys a Device object.

Static Public Member Functions

static std::vector< Devicefind_all ()
 Gets all the available devices.
static std::string lookup ()
 Gets a network device.


Detailed Description

A Device object is an abstraction for any network device suitable to be used to make packet capture with PcapLive

Constructor & Destructor Documentation

pcappp::Device::Device ( Device const &  device  ) 

Creates a Device object as a copy of another.

pcappp::Device::~Device (  )  [virtual]

Destroys a Device object.


Member Function Documentation

std::vector< Device > pcappp::Device::find_all (  )  [static]

Gets all the available devices.

Gets all the devices suitable to be used to make packet capture with PcapLive

Exceptions:
PcapError 

std::vector<Address> const& pcappp::Device::get_addresses (  )  const [inline]

Gets the addresses associated to this device.

std::string const& pcappp::Device::get_description (  )  const [inline]

Gets a description of the device.

Returns:
A human-readable description of the device, or an empty string ("") if a description is not available for this device

std::string const& pcappp::Device::get_name (  )  const [inline]

Gets the name of the device.

bool pcappp::Device::is_loopback (  )  const [inline]

Returns whether the device is a loopback one.

std::string pcappp::Device::lookup (  )  [static]

Gets a network device.

Gets the name of a network device suitable to be used to make packet capture with PcapLive

Returns:
A string identifying the device, usable in the PcapLive constructor
Exceptions:
PcapError 

Device & pcappp::Device::operator= ( Device const &  device  ) 

Assigns another Device object's contents to this one.


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

Generated on Tue Apr 15 17:36:29 2008 for libpcap++ by  doxygen 1.5.5