📄 raw.h
字号:
#ifndef __LWIP_RAW_H__#define __LWIP_RAW_H__#include "lwip/arch.h"#include "lwip/pbuf.h"#include "lwip/inet.h"#include "lwip/ip.h"struct raw_pcb {/* Common members of all PCB types */ IP_PCB; struct raw_pcb *next; u16_t protocol; u8_t (* recv)(void *arg, struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *addr); void *recv_arg;};/* The following functions is the application layer interface to the RAW code. */struct raw_pcb * raw_new (u16_t proto);void raw_remove (struct raw_pcb *pcb);err_t raw_bind (struct raw_pcb *pcb, struct ip_addr *ipaddr);err_t raw_connect (struct raw_pcb *pcb, struct ip_addr *ipaddr);void raw_recv (struct raw_pcb *pcb, u8_t (* recv)(void *arg, struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *addr), void *recv_arg);err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr);err_t raw_send (struct raw_pcb *pcb, struct pbuf *p);/* The following functions are the lower layer interface to RAW. */u8_t raw_input (struct pbuf *p, struct netif *inp);void raw_init (void);#endif /* __LWIP_RAW_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -