载入中...
搜索中...
未找到
类 | |
| class | Channel |
| Length-prefixed (big-endian uint32) message framing over a TcpSocket. sendMsg() writes one framed message; feed() consumes bytes and emits received frames as "chmsg" events on the main thread via the Event module. 更多... | |
| class | HttpRequest |
| Asynchronous HTTP request (Poco-based). Configure headers/body, call submit(), then receive the response through Network::pump as a NetEvType::HttpResp completion. 更多... | |
| struct | NetCompletion |
| One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpRequest/Channel; bytes carries received data; peer/reason/status describe connection context. 更多... | |
| class | NetHost |
| class | NetReader |
| class | NetRpc |
| class | Network |
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing. Script: net <- eve.Network(); 更多... | |
| class | NetWorker |
| Background thread that runs blocking socket I/O and HTTP jobs. Completions are queued and drained by Network::pump on the main thread. 更多... | |
| class | NetWriter |
| class | Session |
| Named collection of Channels (a "session"). Lookup by name, close all. Does not own the channels; the caller owns them. 更多... | |
| class | TcpSocket |
| TCP socket backed by Poco::Net; supports both client (connect) and server (listen/accept) roles. Data arrives via Network::pump as NetCompletion. 更多... | |
| class | UdpLink |
| class | UdpSocket |
| UDP socket backed by Poco::Net; supports connect/bind and datagram send. 更多... | |
枚举 | |
| enum class | NetKind { Tcp , Udp , Http , Channel } |
| Which transport produced a completion. 更多... | |
| enum class | NetEvType { Conn , Data , Err , HttpResp , ChMsg , ChClose } |
| Completion event type delivered through Network::pump. 更多... | |
函数 | |
| Module_IMPL (Network, new Network()) | |
变量 | |
| constexpr size_t | kMaxSendBuffer = 1024 * 1024 |
| Maximum outgoing send buffer size per socket (1 MiB). | |
| constexpr size_t | kMaxFrameSize = 1024 * 1024 |
| Maximum framed message size for Channel (1 MiB). | |
枚举类型说明
◆ NetEvType
|
strong |
Completion event type delivered through Network::pump.
| 枚举值 | |
|---|---|
| Conn | |
| Data | |
| Err | |
| HttpResp | |
| ChMsg | |
| ChClose | |
在文件 NetTypes.h 第 19 行定义.
◆ NetKind
|
strong |
函数说明
◆ Module_IMPL()
| eve::network::Module_IMPL | ( | Network | , |
| new | Network() | ||
| ) |
变量说明
◆ kMaxFrameSize
|
constexpr |
Maximum framed message size for Channel (1 MiB).
在文件 NetTypes.h 第 13 行定义.
被这些函数引用 eve::network::Channel::feed() , 以及 eve::network::Channel::sendMsg().
◆ kMaxSendBuffer
|
constexpr |
Maximum outgoing send buffer size per socket (1 MiB).
在文件 NetTypes.h 第 11 行定义.
被这些函数引用 eve::network::TcpSocket::queueSend().