liudf0716 / xfrpc

The xfrpc project is a lightweight implementation of the FRP client written in C language for OpenWRT and IoT systems. It is designed to provide an efficient solution for resource-constrained devices such as OpenWRT routers and IoT devices, which often have limited ROM and RAM space.
GNU General Public License v3.0
712 stars 89 forks source link

期望支持iot 系统 #20

Open ivanhxq opened 1 year ago

ivanhxq commented 1 year ago

iot系统大部分是rtos,采用c编程,如freertos、contiki、Alios Things、Huawei LiteOS、RT-Thread,跑是轻量tcp/ip协议栈如lwip/uip,基本兼容linux 标准socket api。看了下xfrpc的代码,目前只支持linux,代码socket采用libevent并柔和在代码中,若想支持iot系统,必须把这部分抽象出来重构,其他小改即可支持

另外考虑下场景应用,iot产品大部分是低速率通信,frp协议是否适用

helintongh commented 1 year ago

Now,xfrpc support static library complie.In theory, it can support running on iot devices if the device is x86 architecture. Can you give feedback on the usage of xfrpc under other architectures? This is convenient for us to make changes to xfrpc, thanks.