32 #ifndef __LWIP_RAW_H__
33 #define __LWIP_RAW_H__
39 #include "lwip/pbuf.h"
42 #include "lwip/ip_addr.h"
60 typedef u8_t (*raw_recv_fn)(
void *arg,
struct raw_pcb *pcb,
struct pbuf *p,
79 struct raw_pcb * raw_new (u8_t proto)ICACHE_FLASH_ATTR;
80 void raw_remove (
struct raw_pcb *pcb)ICACHE_FLASH_ATTR;
81 err_t raw_bind (
struct raw_pcb *pcb, ip_addr_t *ipaddr)ICACHE_FLASH_ATTR;
82 err_t raw_connect (
struct raw_pcb *pcb, ip_addr_t *ipaddr)ICACHE_FLASH_ATTR;
84 void raw_recv (
struct raw_pcb *pcb, raw_recv_fn recv,
void *recv_arg)ICACHE_FLASH_ATTR;
85 err_t raw_sendto (
struct raw_pcb *pcb,
struct pbuf *p, ip_addr_t *ipaddr)ICACHE_FLASH_ATTR;
86 err_t raw_send (
struct raw_pcb *pcb,
struct pbuf *p);
89 u8_t raw_input (
struct pbuf *p,
struct netif *inp)ICACHE_FLASH_ATTR;