#include <uwmulti-destination.h>
Class used to represents the UwMultiDestination layer of a node.
◆ Mode
< Switch modes >
| Enumerator |
|---|
| UW_MANUAL_SWITCH | State to switch-mode manually.
|
| UW_AUTOMATIC_SWITCH | State to switch-mode automatically.
|
◆ UwMultiDestination()
| UwMultiDestination::UwMultiDestination |
( |
| ) |
|
◆ ~UwMultiDestination()
| virtual UwMultiDestination::~UwMultiDestination |
( |
| ) |
|
|
inlinevirtual |
◆ addLayer()
| bool UwMultiDestination::addLayer |
( |
IP_range |
range, |
|
|
int |
id |
|
) |
| |
|
virtual |
Add a layer in the layer map if the IP range is valide, i.e., if the range doesn't overlap with an existing one
- Parameters
-
| range | IP range |
| id | identifier of the lower layer return false if the range overlaps with an existing one, true otherwise |
References checkNotOverlap(), and layer_list.
Referenced by command().
◆ checkNotOverlap()
| bool UwMultiDestination::checkNotOverlap |
( |
IP_range |
range | ) |
|
|
protectedvirtual |
return true if there is not overlap between the new range and the previous rnage in the list
- Parameters
-
| range | that has to be inserted in the list |
- Returns
- true if there is not overlap, false otherwise
References layer_list.
Referenced by addLayer().
◆ command()
| int UwMultiDestination::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
◆ getDestinationLayer()
| int UwMultiDestination::getDestinationLayer |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
◆ recv()
| void UwMultiDestination::recv |
( |
Packet * |
p | ) |
|
|
virtual |
recv method. It is called when a packet is received from the other layers
- Parameters
-
| Packet* | Pointer to the packet that are going to be received |
References min_delay_, and recvFromUpperLayers().
◆ recvFromUpperLayers()
| void UwMultiDestination::recvFromUpperLayers |
( |
Packet * |
p | ) |
|
|
protectedvirtual |
◆ debug_
| int UwMultiDestination::debug_ |
|
protected |
◆ default_lower_id
| int UwMultiDestination::default_lower_id |
|
protected |
◆ layer_list
◆ layer_not_exist
| const int UwMultiDestination::layer_not_exist = -1 |
|
static |
This constant is returned when a searched layer does not exist>
◆ lower_id_active_
| int UwMultiDestination::lower_id_active_ |
|
protected |
◆ min_delay_
| double UwMultiDestination::min_delay_ |
|
protected |
◆ switch_mode_
| Mode UwMultiDestination::switch_mode_ |
|
protected |
The documentation for this class was generated from the following files: