mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 15:23:03 +08:00
fix
This commit is contained in:
@@ -34,7 +34,7 @@ void udpecho_entry(void *parameter)
|
|||||||
addr = netbuf_fromaddr(buf);
|
addr = netbuf_fromaddr(buf);
|
||||||
port = netbuf_fromport(buf);
|
port = netbuf_fromport(buf);
|
||||||
|
|
||||||
/* send the data to buffer */
|
/* send the data to buffer */
|
||||||
netconn_connect(conn, addr, port);
|
netconn_connect(conn, addr, port);
|
||||||
|
|
||||||
/* reset address, and send to client */
|
/* reset address, and send to client */
|
||||||
@@ -46,7 +46,7 @@ void udpecho_entry(void *parameter)
|
|||||||
|
|
||||||
netconn_send(conn, buf);
|
netconn_send(conn, buf);
|
||||||
|
|
||||||
/* release buffer */
|
/* release buffer */
|
||||||
netbuf_delete(buf);
|
netbuf_delete(buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user