ns-3
|
an address for a packet socket More...
#include <packet-socket-address.h>
Public Member Functions | |
void | SetProtocol (uint16_t protocol) |
void | SetAllDevices (void) |
void | SetSingleDevice (uint32_t device) |
void | SetPhysicalAddress (const Address address) |
uint16_t | GetProtocol (void) const |
uint32_t | GetSingleDevice (void) const |
bool | IsSingleDevice (void) const |
Address | GetPhysicalAddress (void) const |
operator Address () const |
Static Public Member Functions | |
static PacketSocketAddress | ConvertFrom (const Address &address) |
static bool | IsMatchingType (const Address &address) |
an address for a packet socket
|
static |
address | a polymorphic address |
Convert a polymorphic address to an Mac48Address instance. The conversion performs a type check.
References ns3::Address::CopyAllFrom(), ns3::Address::CopyTo(), IsMatchingType(), and NS_ASSERT.
Referenced by ns3::PacketSocket::Bind(), ns3::PacketSocket::GetSockName(), ns3::PacketSocket::GetTxAvailable(), and ns3::PacketSocket::SendTo().
|
static |
address | address to test |
References ns3::Address::IsMatchingType().
Referenced by ns3::PacketSocket::Bind(), ns3::PacketSocket::Connect(), ConvertFrom(), and ns3::PacketSocket::SendTo().
ns3::PacketSocketAddress::operator Address | ( | ) | const |