iqiyi / libfiber

The high performance c/c++ coroutine/fiber library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

samples/c/server/main.c - 服务端如何实现定时(如:1分钟1次)向客户端发送数据?

QingruiHuang opened this issue · comments

commented

服务端如何实现定时(如:1分钟1次)向客户端发送数据?

可以创建一个独立的协程或协程定时器。

commented

给个例程参考一下