A Discrete-Event Network Simulator
API
ns3::NscInterfaceImpl Class Reference

Nsc interface implementation class. More...

+ Inheritance diagram for ns3::NscInterfaceImpl:
+ Collaboration diagram for ns3::NscInterfaceImpl:

Public Member Functions

 NscInterfaceImpl (Ptr< NscTcpL4Protocol > prot)
 Constructor. More...
 
- Public Member Functions inherited from ISendCallback
virtual ~ISendCallback ()
 
- Public Member Functions inherited from IInterruptCallback
virtual ~IInterruptCallback ()
 

Private Member Functions

virtual void gettime (unsigned int *, unsigned int *)
 Called by the Linux stack RNG initialization. More...
 
virtual void send_callback (const void *data, int datalen)
 Invoked by NSCs 'ethernet driver' to re-inject a packet into ns-3. More...
 
virtual void wakeup ()
 Called by the NSC stack whenever something of interest has happened. More...
 

Private Attributes

Ptr< NscTcpL4Protocolm_prot
 the NSC TCP protocol More...
 

Detailed Description

Nsc interface implementation class.

Definition at line 61 of file nsc-tcp-l4-protocol.cc.

Constructor & Destructor Documentation

ns3::NscInterfaceImpl::NscInterfaceImpl ( Ptr< NscTcpL4Protocol prot)

Constructor.

Parameters
protthe NSC TCP protocol

Definition at line 98 of file nsc-tcp-l4-protocol.cc.

Member Function Documentation

void ns3::NscInterfaceImpl::gettime ( unsigned int *  sec,
unsigned int *  usec 
)
privatevirtual

Called by the Linux stack RNG initialization.

Its also used by the cradle code to add a timestamp to printk/printf/debug output.

Implements IInterruptCallback.

Definition at line 114 of file nsc-tcp-l4-protocol.cc.

References m_prot.

void ns3::NscInterfaceImpl::send_callback ( const void *  data,
int  datalen 
)
privatevirtual

Invoked by NSCs 'ethernet driver' to re-inject a packet into ns-3.

A packet is an octet soup consisting of an IP Header, TCP Header and user payload, if any

Parameters
datathe data
datalenthe data length

Implements ISendCallback.

Definition at line 104 of file nsc-tcp-l4-protocol.cc.

References m_prot.

void ns3::NscInterfaceImpl::wakeup ( )
privatevirtual

Called by the NSC stack whenever something of interest has happened.

Examples: when data arrives on a socket, a listen socket has a new connection pending, etc.

Implements IInterruptCallback.

Definition at line 109 of file nsc-tcp-l4-protocol.cc.

References m_prot.

Member Data Documentation

Ptr<NscTcpL4Protocol> ns3::NscInterfaceImpl::m_prot
private

the NSC TCP protocol

Definition at line 95 of file nsc-tcp-l4-protocol.cc.

Referenced by gettime(), send_callback(), and wakeup().


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