INET Framework for OMNeT++/OMNEST
inet::tcp::LwipTcpStackIf Class Referenceabstract

Interface class between TCP_lwIP and LwipTcpLayer. More...

#include <LwipTcpStackIf.h>

Inheritance diagram for inet::tcp::LwipTcpStackIf:
inet::tcp::TCP_lwIP

Public Member Functions

virtual ~LwipTcpStackIf ()
 
virtual void ip_output (LwipTcpLayer::tcp_pcb *pcb, L3Address const &src, L3Address const &dest, void *tcpseg, int len)=0
 TCP layer send a packet to IP layer. More...
 
virtual err_t lwip_tcp_event (void *arg, LwipTcpLayer::tcp_pcb *pcb, LwipTcpLayer::lwip_event, struct pbuf *p, u16_t size, err_t err)=0
 TCP layer events. More...
 
virtual void lwip_free_pcb_event (LwipTcpLayer::tcp_pcb *pcb)=0
 TCP layer event called before LWIP freeing a pcb. More...
 
virtual netifip_route (L3Address const &ipAddr)=0
 Get the network interface. More...
 
virtual void notifyAboutIncomingSegmentProcessing (LwipTcpLayer::tcp_pcb *pcb, uint32 seqNo, const void *dataptr, int len)=0
 

Detailed Description

Interface class between TCP_lwIP and LwipTcpLayer.

Constructor & Destructor Documentation

virtual inet::tcp::LwipTcpStackIf::~LwipTcpStackIf ( )
inlinevirtual
40 {}

Member Function Documentation

virtual void inet::tcp::LwipTcpStackIf::ip_output ( LwipTcpLayer::tcp_pcb *  pcb,
L3Address const &  src,
L3Address const &  dest,
void *  tcpseg,
int  len 
)
pure virtual

TCP layer send a packet to IP layer.

Parameters
pcbthe lwip pcb or nullptr (tipically when send a RESET )
srcthe source IP addr
destthe destination IP addr
tcpsegpointer to TCP segment (message)
lenlength of tcpseg

Implemented in inet::tcp::TCP_lwIP.

Referenced by ~LwipTcpStackIf().

virtual netif* inet::tcp::LwipTcpStackIf::ip_route ( L3Address const &  ipAddr)
pure virtual

Get the network interface.

Implemented in inet::tcp::TCP_lwIP.

Referenced by ~LwipTcpStackIf().

virtual void inet::tcp::LwipTcpStackIf::lwip_free_pcb_event ( LwipTcpLayer::tcp_pcb *  pcb)
pure virtual

TCP layer event called before LWIP freeing a pcb.

Parameters
pcbpointer to pcb

Implemented in inet::tcp::TCP_lwIP.

Referenced by ~LwipTcpStackIf().

virtual err_t inet::tcp::LwipTcpStackIf::lwip_tcp_event ( void *  arg,
LwipTcpLayer::tcp_pcb *  pcb,
LwipTcpLayer::lwip_event  ,
struct pbuf p,
u16_t  size,
err_t  err 
)
pure virtual

TCP layer events.

Implemented in inet::tcp::TCP_lwIP.

Referenced by ~LwipTcpStackIf().

virtual void inet::tcp::LwipTcpStackIf::notifyAboutIncomingSegmentProcessing ( LwipTcpLayer::tcp_pcb *  pcb,
uint32  seqNo,
const void *  dataptr,
int  len 
)
pure virtual

Implemented in inet::tcp::TCP_lwIP.

Referenced by ~LwipTcpStackIf().


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