Nsc interface implementation class. More...
Public Member Functions | |
NscInterfaceImpl (Ptr< NscTcpL4Protocol > prot) | |
Constructor. More... | |
![]() | |
virtual | ~ISendCallback () |
![]() | |
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< NscTcpL4Protocol > | m_prot |
the NSC TCP protocol More... | |
Nsc interface implementation class.
Definition at line 62 of file nsc-tcp-l4-protocol.cc.
ns3::NscInterfaceImpl::NscInterfaceImpl | ( | Ptr< NscTcpL4Protocol > | prot | ) |
Constructor.
prot | the NSC TCP protocol |
Definition at line 99 of file nsc-tcp-l4-protocol.cc.
|
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 115 of file nsc-tcp-l4-protocol.cc.
References m_prot.
|
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
data | the data |
datalen | the data length |
Implements ISendCallback.
Definition at line 105 of file nsc-tcp-l4-protocol.cc.
References m_prot.
|
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 110 of file nsc-tcp-l4-protocol.cc.
References m_prot.
|
private |
the NSC TCP protocol
Definition at line 96 of file nsc-tcp-l4-protocol.cc.
Referenced by gettime(), send_callback(), and wakeup().