ns3::PacketSocketAddress Class Reference
[Address]

an address for a packet socket More...

#include <packet-socket-address.h>

Collaboration diagram for ns3::PacketSocketAddress:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PacketSocketAddress ()
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)

Private Member Functions

Address ConvertTo (void) const

Static Private Member Functions

static uint8_t GetType (void)

Private Attributes

uint16_t m_protocol
bool m_isSingleDevice
uint32_t m_device
Address m_address

Detailed Description

an address for a packet socket

Definition at line 38 of file packet-socket-address.h.


Constructor & Destructor Documentation

ns3::PacketSocketAddress::PacketSocketAddress (  ) 

Definition at line 23 of file packet-socket-address.cc.


Member Function Documentation

PacketSocketAddress ns3::PacketSocketAddress::ConvertFrom ( const Address address  )  [static]
Parameters:
address a polymorphic address

Convert a polymorphic address to an Mac48Address instance. The conversion performs a type check.

Definition at line 90 of file packet-socket-address.cc.

Referenced by ns3::PacketSocket::Bind(), ns3::PacketSocket::GetSockName(), ns3::PacketSocket::GetTxAvailable(), and ns3::PacketSocket::SendTo().

Address ns3::PacketSocketAddress::ConvertTo ( void   )  const [private]
Address ns3::PacketSocketAddress::GetPhysicalAddress ( void   )  const

Definition at line 64 of file packet-socket-address.cc.

Referenced by ns3::PacketSocket::SendTo().

uint16_t ns3::PacketSocketAddress::GetProtocol ( void   )  const

Definition at line 49 of file packet-socket-address.cc.

References m_protocol.

Referenced by ns3::PacketSocket::DoBind(), and ns3::PacketSocket::SendTo().

uint32_t ns3::PacketSocketAddress::GetSingleDevice ( void   )  const
uint8_t ns3::PacketSocketAddress::GetType ( void   )  [static, private]

Definition at line 126 of file packet-socket-address.cc.

Referenced by ConvertTo().

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

Definition at line 121 of file packet-socket-address.cc.

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

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

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

Definition at line 69 of file packet-socket-address.cc.

void ns3::PacketSocketAddress::SetAllDevices ( void   ) 
void ns3::PacketSocketAddress::SetPhysicalAddress ( const Address  address  ) 
void ns3::PacketSocketAddress::SetProtocol ( uint16_t  protocol  ) 
void ns3::PacketSocketAddress::SetSingleDevice ( uint32_t  device  ) 

Member Data Documentation

Definition at line 76 of file packet-socket-address.h.

Referenced by ConvertTo().

Definition at line 75 of file packet-socket-address.h.

Referenced by ConvertTo().

Definition at line 74 of file packet-socket-address.h.

Referenced by ConvertTo().

Definition at line 73 of file packet-socket-address.h.

Referenced by ConvertTo(), and GetProtocol().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:12:05 2009 for NS-3 by  doxygen 1.6.3