ns-3
ns3::PacketSocketAddress Class Reference

an address for a packet socket More...

#include <packet-socket-address.h>

List of all members.

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)

Detailed Description

an address for a packet socket


Member Function Documentation

Parameters:
addressa 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().

bool ns3::PacketSocketAddress::IsMatchingType ( const Address address) [static]
Parameters:
addressaddress to test
Returns:
true if the address matches, false otherwise.

References ns3::Address::IsMatchingType().

Referenced by ns3::PacketSocket::Bind(), ns3::PacketSocket::Connect(), ConvertFrom(), and ns3::PacketSocket::SendTo().

ns3::PacketSocketAddress::operator Address ( void  ) const
Returns:
a new Address instance

Convert an instance of this class to a polymorphic Address instance.


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