XTLS / libXray

MIT License
64 stars 57 forks source link

可否提供面向对象的 API #2

Closed arror closed 1 year ago

arror commented 1 year ago

使用空结构体指针作为接收对象,提供面向对象的 API。

ghost commented 1 year ago

不能。目前暴露出的 api 仅有几个,看不出封装的意义。如果仅仅是为了对 api 进行分类,那是完全没有必要的。 无需过于迷信面向对象。