raw.h
来自「LWIP1.1.1在UCOS-II2.61上的移植」· C头文件 代码 · 共 45 行
H
45 行
#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 + =
减小字号Ctrl + -
显示快捷键?