Some quick code to use UDP-only (no TCP) with mBed. Echos received packets and sends packets when a button is pressed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

loopif.c File Reference

loopif.c File Reference

Loop Interface. More...

Go to the source code of this file.

Functions

err_t loopif_init (struct netif *netif)
 Initialize a lwip network interface structure for a loopback interface.

Detailed Description

Loop Interface.

Definition in file loopif.c.


Function Documentation

err_t loopif_init ( struct netif netif )

Initialize a lwip network interface structure for a loopback interface.

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

Definition at line 53 of file loopif.c.