Classes | Defines | Typedefs | Functions

alexb/lib/lwip/contrib/src/include/lwip/raw.h File Reference

#include "lwip/opt.h"
#include "lwip/pbuf.h"
#include "lwip/def.h"
#include "lwip/ip.h"
#include "lwip/ip_addr.h"

Classes

struct  raw_pcb

Defines

#define raw_init()

Typedefs

typedef u8_t(* raw_recv_fn )(void *arg, struct raw_pcb *pcb, struct pbuf *p, ip_addr_t *addr)
 Function prototype for raw pcb receive callback functions.

Functions

struct raw_pcbraw_new (u8_t proto)
void raw_remove (struct raw_pcb *pcb)
err_t raw_bind (struct raw_pcb *pcb, ip_addr_t *ipaddr)
err_t raw_connect (struct raw_pcb *pcb, ip_addr_t *ipaddr)
void raw_recv (struct raw_pcb *pcb, raw_recv_fn recv, void *recv_arg)
err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, ip_addr_t *ipaddr)
err_t raw_send (struct raw_pcb *pcb, struct pbuf *p)
u8_t raw_input (struct pbuf *p, struct netif *inp)

Define Documentation

#define raw_init (  ) 

Typedef Documentation

typedef u8_t(* raw_recv_fn)(void *arg, struct raw_pcb *pcb, struct pbuf *p, ip_addr_t *addr)

Function prototype for raw pcb receive callback functions.

Parameters:
arg user supplied argument (raw_pcb.recv_arg)
pcb the raw_pcb which received data
p the packet buffer that was received
addr the remote IP address from which the packet was received
Returns:
1 if the packet was 'eaten' (aka. deleted), 0 if the packet lives on If returning 1, the callback is responsible for freeing the pbuf if it's not used any more.

Function Documentation

err_t raw_bind ( struct raw_pcb pcb,
ip_addr_t ipaddr 
)
err_t raw_connect ( struct raw_pcb pcb,
ip_addr_t ipaddr 
)
u8_t raw_input ( struct pbuf p,
struct netif inp 
)
struct raw_pcb* raw_new ( u8_t  proto  )  [read]
void raw_recv ( struct raw_pcb pcb,
raw_recv_fn  recv,
void *  recv_arg 
)
void raw_remove ( struct raw_pcb pcb  ) 
err_t raw_send ( struct raw_pcb pcb,
struct pbuf p 
)
err_t raw_sendto ( struct raw_pcb pcb,
struct pbuf p,
ip_addr_t ipaddr 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines