From: 孙春阳 Date: Thu, 12 Jun 2025 02:19:35 +0000 (+0800) Subject: 添加socket poll select 函数支持 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=de2e7d37dc47ee3d5f84e60098f992266cba4de1;p=mirrors%2FFD230.git 添加socket poll select 函数支持 --- diff --git a/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h b/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h index 4a360d9bc..71af562d3 100644 --- a/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h +++ b/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h @@ -86,12 +86,13 @@ // Options only in new opt.h -#define LWIP_SOCKET_SELECT 0 +#define LWIP_SOCKET_SELECT 1 #define LWIP_SOCKET_POLL 1 - +#define LWIP_SOCKET_SELECT_FUNC +#define LWIP_SOCKET_POLL_FUNC // Options for old lwipopts.h -#define MEM_SIZE (4*1024*1024) // (512*1024) +#define MEM_SIZE (512*1024) // (4*1024*1024) // (512*1024) #define IP_FRAG_MAX_MTU 1500 #define LWIP_CONFIG_NUM_SOCKETS 128 #define IP_REASS_MAX_MEM_SIZE (MEM_SIZE / 4) @@ -253,8 +254,8 @@ // #undef LWIP_IPV6 // #define LWIP_IPV6 0 -#undef LWIP_SOCKET_SELECT -#define LWIP_SOCKET_SELECT 1 +// #undef LWIP_SOCKET_SELECT +// #define LWIP_SOCKET_SELECT 1 /* MIB2 stats are required to check IPv4 reassembly results */