ns3::TcpSocket Class Reference
[Socket]

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

#include <tcp-socket.h>

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

List of all members.

Public Member Functions

 TcpSocket (void)
virtual ~TcpSocket (void)

Static Public Member Functions

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

Private Member Functions

virtual void SetSndBufSize (uint32_t size)=0
virtual uint32_t GetSndBufSize (void) const =0
virtual void SetRcvBufSize (uint32_t size)=0
virtual uint32_t GetRcvBufSize (void) const =0
virtual void SetSegSize (uint32_t size)=0
virtual uint32_t GetSegSize (void) const =0
virtual void SetSSThresh (uint32_t threshold)=0
virtual uint32_t GetSSThresh (void) const =0
virtual void SetInitialCwnd (uint32_t count)=0
virtual uint32_t GetInitialCwnd (void) const =0
virtual void SetConnTimeout (Time timeout)=0
virtual Time GetConnTimeout (void) const =0
virtual void SetConnCount (uint32_t count)=0
virtual uint32_t GetConnCount (void) const =0
virtual void SetDelAckTimeout (Time timeout)=0
virtual Time GetDelAckTimeout (void) const =0
virtual void SetDelAckMaxCount (uint32_t count)=0
virtual uint32_t GetDelAckMaxCount (void) const =0

Detailed Description

(abstract) base class of all TcpSockets

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

Definition at line 46 of file tcp-socket.h.


Constructor & Destructor Documentation

ns3::TcpSocket::TcpSocket ( void   ) 

Definition at line 98 of file tcp-socket.cc.

References NS_LOG_FUNCTION_NOARGS.

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

Definition at line 103 of file tcp-socket.cc.

References NS_LOG_FUNCTION_NOARGS.


Member Function Documentation

virtual uint32_t ns3::TcpSocket::GetConnCount ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual Time ns3::TcpSocket::GetConnTimeout ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::TcpSocket::GetDelAckMaxCount ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual Time ns3::TcpSocket::GetDelAckTimeout ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::TcpSocket::GetInitialCwnd ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

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

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::TcpSocket::GetSegSize ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::TcpSocket::GetSndBufSize ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual uint32_t ns3::TcpSocket::GetSSThresh ( void   )  const [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

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

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

Attributes defined for this type:

  • SndBufSize: TcpSocket maximum transmit buffer size (bytes)
  • RcvBufSize: TcpSocket maximum receive buffer size (bytes)
  • SegmentSize: TCP maximum segment size in bytes (may be adjusted based on MTU discovery)
  • SlowStartThreshold: TCP slow start threshold (bytes)
  • InitialCwnd: TCP initial congestion window size (segments)
  • ConnTimeout: TCP retransmission timeout when opening connection (seconds)
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 3000000000ns
    • Flags: construct write read
  • ConnCount: Number of connection attempts (SYN retransmissions) before returning failure
  • DelAckTimeout: Timeout value for TCP delayed acks, in seconds
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 200000000ns
    • Flags: construct write read
  • DelAckCount: Number of packets to wait before sending a TCP ack

No TraceSources defined for this type.

Reimplemented from ns3::Object.

Reimplemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Definition at line 36 of file tcp-socket.cc.

References ns3::TypeId::AddAttribute(), GetConnCount(), GetConnTimeout(), GetDelAckMaxCount(), GetDelAckTimeout(), GetInitialCwnd(), GetRcvBufSize(), GetSegSize(), GetSndBufSize(), GetSSThresh(), ns3::Seconds(), SetConnCount(), SetConnTimeout(), SetDelAckMaxCount(), SetDelAckTimeout(), SetInitialCwnd(), ns3::TypeId::SetParent(), SetRcvBufSize(), SetSegSize(), SetSndBufSize(), and SetSSThresh().

virtual void ns3::TcpSocket::SetConnCount ( uint32_t  count  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetConnTimeout ( Time  timeout  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetDelAckMaxCount ( uint32_t  count  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetDelAckTimeout ( Time  timeout  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetInitialCwnd ( uint32_t  count  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

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

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetSegSize ( uint32_t  size  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetSndBufSize ( uint32_t  size  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().

virtual void ns3::TcpSocket::SetSSThresh ( uint32_t  threshold  )  [private, pure virtual]

Implemented in ns3::NscTcpSocketImpl, and ns3::TcpSocketImpl.

Referenced by GetTypeId().


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