📄 server.h
字号:
#ifndef __SERVER_H__
#define __SERVER_H__
#include "lwip/pbuf.h"
#include "lwip/udp.h"
#include "stm32f10x.h"
#include "stm32f107.h"
#include <string.h>
#include <stdio.h>
#define UDP_SERVER_PORT 1208 /* define the UDP local connection port */ //120
#define UDP_CLIENT_PORT 121 /* define the UDP remote connection port */
/*Initialize the UDP server application.*/
void server_init(void); //主程序中只需调用此函数
void udp_server_callback(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -