2793| 4
|
想用战舰V3写一个udp demo程序 |
12金钱
最佳答案\裸机\lwip-2.0.2\demo\lwipdemo.c
[mw_shl_code=applescript,true]/*
* 向udp控制块注册的回调函数
* 当收到数据后,自动调用该函数,其中p为接收到的数据包
*/
static void udp_demo_callback(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, uint16_t port)
{
struct pbuf *q;
static uint8_t cnt = 0;
pbuf_free(p);
/* 构造要发送的报文 */
q = pbuf_alloc(PBUF_TRANSPO ...
| ||
| ||
我有故事,你有酒吗
|
||
| ||
| ||
| ||
我有故事,你有酒吗
|
||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-7-15 15:02
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网