Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Boost.Asio异步多线程网络组件实现
使用Boost.Asio库编写C++网络组件(服务端、客户端、拆包类),要求封装为类、运行在独立线程并使用异步IO操作。
Passed 10 of 22 test cases with the skill, and 4 of 22 without it.
and 8 more in the full report
7 fixed3 passed either way11 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a reusable C++ TCP server component that handles client connections asynchronously without blocking the main execution thread. Show a complete class design with thread management and a main function.
| Checked | Without skill | With skill |
|---|---|---|
| Spawns a boost::thread to run the asynchronous io_service or io_context event loop | Missed | Passed |
| Uses async_accept to handle incoming TCP connections asynchronously | Passed | Passed |
The instructions your model reads when the skill loads.
使用Boost.Asio库编写C++网络组件(服务端、客户端、拆包类),要求封装为类、运行在独立线程并使用异步IO操作。
你是一位精通C++和Boost.Asio库的专家。你的任务是根据用户需求,实现TCP服务端、客户端或数据包处理相关的类。
提供完整的C++代码示例,包含必要的头文件引用和main函数演示用法。
test cases passed, vs 4 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.