ns3::UdpSocket Class Reference
[Socket]

(abstract) base class of all UdpSockets More...

#include <udp-socket.h>

Inheritance diagram for ns3::UdpSocket:
Inheritance graph
[legend]
Collaboration diagram for ns3::UdpSocket:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UdpSocket (void)
virtual ~UdpSocket (void)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::UdpSocket.

Private Member Functions

virtual void SetRcvBufSize (uint32_t size)=0
virtual uint32_t GetRcvBufSize (void) const =0
virtual void SetIpTtl (uint32_t ipTtl)=0
virtual uint32_t GetIpTtl (void) const =0
virtual void SetIpMulticastTtl (uint32_t ipTtl)=0
virtual uint32_t GetIpMulticastTtl (void) const =0
virtual void SetMtuDiscover (bool discover)=0
virtual bool GetMtuDiscover (void) const =0

Detailed Description

(abstract) base class of all UdpSockets

This class exists solely for hosting UdpSocket attributes that can be reused across different implementations.

Definition at line 45 of file udp-socket.h.


Constructor & Destructor Documentation

ns3::UdpSocket::UdpSocket ( void   ) 

Definition at line 66 of file udp-socket.cc.

References NS_LOG_FUNCTION_NOARGS.

ns3::UdpSocket::~UdpSocket ( void   )  [virtual]

Definition at line 71 of file udp-socket.cc.

References NS_LOG_FUNCTION_NOARGS.


Member Function Documentation

virtual uint32_t ns3::UdpSocket::GetIpMulticastTtl ( void   )  const [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::UdpSocket::GetIpTtl ( void   )  const [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

virtual bool ns3::UdpSocket::GetMtuDiscover ( void   )  const [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::UdpSocket::GetRcvBufSize ( void   )  const [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

TypeId ns3::UdpSocket::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::UdpSocket.

Attributes defined for this type:

  • RcvBufSize: UdpSocket maximum receive buffer size (bytes)
  • IpTtl: socket-specific TTL for unicast IP packets (if non-zero)
  • IpMulticastTtl: socket-specific TTL for multicast IP packets (if non-zero)
  • MtuDiscover: If enabled, every outgoing ip packet will have the DF flag set.
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: construct write read

No TraceSources defined for this type.

Reimplemented from ns3::Object.

Reimplemented in ns3::UdpSocketImpl.

Definition at line 35 of file udp-socket.cc.

References ns3::TypeId::AddAttribute(), GetIpMulticastTtl(), GetIpTtl(), GetMtuDiscover(), GetRcvBufSize(), SetIpMulticastTtl(), SetIpTtl(), SetMtuDiscover(), ns3::TypeId::SetParent(), and SetRcvBufSize().

virtual void ns3::UdpSocket::SetIpMulticastTtl ( uint32_t  ipTtl  )  [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::UdpSocket::SetIpTtl ( uint32_t  ipTtl  )  [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::UdpSocket::SetMtuDiscover ( bool  discover  )  [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::UdpSocket::SetRcvBufSize ( uint32_t  size  )  [private, pure virtual]

Implemented in ns3::UdpSocketImpl.

Referenced by GetTypeId().


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