Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Net::OChannelHopper Class Reference

A radio frequency channel hopper. More...

#include </home/clem/local/src/opie/libopie2/opienet/onetwork.h>

Collaboration diagram for Opie::Net::OChannelHopper:

Collaboration graph
[legend]
List of all members.

Signals

void hopped (int)

Public Member Functions

 OChannelHopper (OWirelessNetworkInterface *)
virtual ~OChannelHopper ()
bool isActive () const
int channel () const
void setInterval (int interval)
int interval () const

Protected Member Functions

virtual void timerEvent (QTimerEvent *)

Private Attributes

OWirelessNetworkInterface_iface
int _interval
int _tid
QValueList< int > _channels
QValueList< int >::Iterator _channel
Private * d

Detailed Description

A radio frequency channel hopper.

This class provides a channel hopper for radio frequencies. A channel hopper frequently changes the radio frequency channel of its associated OWirelessNetworkInterface. This is necessary when in monitoring mode and scanning for other devices, because the radio frequency hardware can only detect packets sent on the same frequency.

Author:
Michael 'Mickey' Lauer <mickey@vanille.de>

Definition at line 261 of file onetwork.h.


Constructor & Destructor Documentation

Opie::Net::OChannelHopper::OChannelHopper OWirelessNetworkInterface  ) 
 

Constructor.

Definition at line 379 of file onetwork.cpp.

References _channel, _channels, QValueList< T >::append(), QValueList< T >::begin(), and Opie::Net::OWirelessNetworkInterface::channels().

Opie::Net::OChannelHopper::~OChannelHopper  )  [virtual]
 

Destructor.

Definition at line 404 of file onetwork.cpp.


Member Function Documentation

int Opie::Net::OChannelHopper::channel  )  const
 

Returns:
the last hopped channel

Definition at line 415 of file onetwork.cpp.

References _channel.

Referenced by Opie::Net::OWirelessNetworkInterface::channel().

void Opie::Net::OChannelHopper::hopped int   )  [signal]
 

This signal is emitted right after the channel hopper performed a hop

Referenced by timerEvent().

int Opie::Net::OChannelHopper::interval  )  const
 

Returns:
the channel hopping interval

Definition at line 448 of file onetwork.cpp.

References _interval.

Referenced by Opie::Net::OWirelessNetworkInterface::channelHopping().

bool Opie::Net::OChannelHopper::isActive  )  const
 

Returns:
true, if the channel hopper is hopping channels

Definition at line 409 of file onetwork.cpp.

References _tid.

Referenced by Opie::Net::OWirelessNetworkInterface::channel().

void Opie::Net::OChannelHopper::setInterval int  interval  ) 
 

Set the channel hopping interval. An interval of 0 deactivates the channel hopper.

Definition at line 430 of file onetwork.cpp.

References _interval, and _tid.

Referenced by Opie::Net::OWirelessNetworkInterface::setChannelHopping().

void Opie::Net::OChannelHopper::timerEvent QTimerEvent *   )  [protected, virtual]
 

Definition at line 421 of file onetwork.cpp.

References _channel, _channels, _iface, QValueList< T >::begin(), QValueList< T >::end(), hopped(), odebug, oendl, and Opie::Net::OWirelessNetworkInterface::setChannel().


Member Data Documentation

QValueList<int>::Iterator Opie::Net::OChannelHopper::_channel [private]
 

Definition at line 306 of file onetwork.h.

Referenced by channel(), OChannelHopper(), and timerEvent().

QValueList<int> Opie::Net::OChannelHopper::_channels [private]
 

Definition at line 305 of file onetwork.h.

Referenced by OChannelHopper(), and timerEvent().

OWirelessNetworkInterface* Opie::Net::OChannelHopper::_iface [private]
 

Definition at line 302 of file onetwork.h.

Referenced by timerEvent().

int Opie::Net::OChannelHopper::_interval [private]
 

Definition at line 303 of file onetwork.h.

Referenced by interval(), and setInterval().

int Opie::Net::OChannelHopper::_tid [private]
 

Definition at line 304 of file onetwork.h.

Referenced by isActive(), and setInterval().

Private* Opie::Net::OChannelHopper::d [private]
 

Definition at line 307 of file onetwork.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:38 2005 for OPIE by  doxygen 1.4.2