loopif.c File Reference


Functions

void loopif_poll (struct netif *netif)
err_t loopif_init (struct netif *netif)

Detailed Description

Loop Interface

Function Documentation

err_t loopif_init ( struct netif netif  ) 

Initialize a lwip network interface structure for a loopback interface

Parameters:
netif the lwip network interface structure for this loopif
Returns:
ERR_OK if the loopif is initialized ERR_MEM if private data couldn't be allocated

void loopif_poll ( struct netif netif  ) 

Call loopif_poll() in the main loop of your application. This is to prevent reentering non-reentrant functions like tcp_input(). Packets passed to loopif_output() are put on a list that is passed to netif->input() by loopif_poll().

Parameters:
netif the lwip network interface structure for this loopif


Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4