server.h
来自「LWIP在STM32裸机上的移植」· C头文件 代码 · 共 20 行
H
20 行
#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 + =
减小字号Ctrl + -
显示快捷键?