zhllxt / asio2

Header only c++ network library, based on asio,support tcp,udp,http,websocket,rpc,ssl,icmp,serial_port,socks5.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

是否有支持使用boost内的asio和beast的计划

nevermoreluo opened this issue · comments

看代码里面有ASIO_STANDALONE ,
但是提示// Must define ASIO_STANDALONE, otherwise compilation fails.
询问一下有支持这部分的计划嘛?

develop分支里的最新代码已经支持。

用boost的话要把config.hpp中的ASIO_STANDALONE和BEAST_HEADER_ONLY两个宏都要注释起来。

早期的版本本来是支持boost的,后来为了实现header only的beast(header only的http和websocket),就对boost::beast进行了改造,改造过程中发现,兼容boost挺麻烦,就没再管boost的了,近段又重新撸了一遍,对boost的也做了支持。

thx 万分感谢