ns3::UanAddress Class Reference
#include <uan-address.h>
List of all members.
Detailed Description
A class used for addressing UAN MAC's. This implementation uses a simple 8 bit flat addressing scheme. It is unlikely that perceived underwater networks will soon exceed 200 nodes (or the overlapping of two underwater networks - the ocean is big), so this should provide adequate addressing for most applications.
Constructor & Destructor Documentation
ns3::UanAddress::UanAddress |
( |
uint8_t |
addr |
) |
|
Create UanAddress object with address addr.
- Parameters:
-
| addr | byte address to assign to this address |
Member Function Documentation
void ns3::UanAddress::CopyFrom |
( |
const uint8_t * |
pBuffer |
) |
|
Sets address to address stored in parameter.
- Parameters:
-
| pBuffer | Buffer to extract address from |
void ns3::UanAddress::CopyTo |
( |
uint8_t * |
pBuffer |
) |
|
Writes address to buffer parameter.
- Parameters:
-
uint8_t ns3::UanAddress::GetAsInt |
( |
void |
|
) |
const |
- Returns:
- 8 bit integer version of address
static UanAddress ns3::UanAddress::GetBroadcast |
( |
void |
|
) |
[static] |
- Returns:
- Broadcast address: 255
static bool ns3::UanAddress::IsMatchingType |
( |
const Address & |
address |
) |
[static] |
- Parameters:
-
- Returns:
- True if address given is consistant with UanAddress
The documentation for this class was generated from the following file:
- src/devices/uan/model/uan-address.h