資源簡介
libevent例子(timeout.cpp)
代碼片段和文件信息
#include?
#include?
#include?
void?timer_cb(evutil_socket_t?fd?short?what?void?*arg)
{
????auto?str?=?static_cast(arg);
????std::cout?<*str?<}
int?main()
{
????std::string?str?=?“Hello?World!“;
????auto?*base?
- 上一篇:TCP/IP與串口調試
- 下一篇:crc16/32計算(crc16_32.c)
評論
共有 條評論