载入中...
搜索中...
未找到
NetWorker.cpp
浏览该文件的文档.
void drain(std::vector< NetCompletion > &out)
Test helper: moves all pending completions into out.
Definition NetWorker.cpp:35
void post(NetCompletion c)
Queues a completion for the main thread (thread-safe).
Definition NetWorker.cpp:30
NetWorker(Network *owner)
Creates a worker owned by owner (not started yet).
Definition NetWorker.cpp:8
void submit(std::function< void()> job)
Queues an arbitrary blocking job to run on the worker thread.
Definition NetWorker.cpp:40
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing....
Definition Network.h:30
void pollSockets()
Internal: polls watched sockets; called from the NetWorker thread.
Definition Network.cpp:213
Definition Channel.cpp:12
One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpReque...
Definition NetTypes.h:33