载入中...
搜索中...
未找到
Channel.cpp
浏览该文件的文档.
EVEngine assertion entry point, backed by zeroerr.
#define EV_PARAM_CHECK(cond,...)
Validate a function parameter / public API precondition.
Definition Assert.h:30
In-memory byte buffer implementing eve::Data (ref-counted).
Definition ByteData.h:11
A named event carrying an ordered list of Variant payloads. Pushed messages are heap-allocated; the q...
Definition Event.h:56
Channel(TcpSocket *socket)
Creates a channel over an existing socket (socket must be non-null).
Definition Channel.cpp:30
void feed(const std::vector< char > &bytes)
Feeds received bytes into the frame parser. Called on the main thread from Network::pump / the emitCo...
Definition Channel.cpp:65
bool sendMsgString(std::string s)
Sends a string payload as one framed message (empty strings are rejected).
Definition Channel.cpp:59
void post(NetCompletion c)
Posts a completion to the worker queue (thread-safe).
Definition Network.cpp:167
TCP socket backed by Poco::Net; supports both client (connect) and server (listen/accept) roles....
Definition TcpSocket.h:28
Network * network() const
Internal: owning module (used by Network::pump / NetWorker).
Definition TcpSocket.h:54
bool send(eve::data::ByteData *data)
Sends a framed byte payload; true when queued/accepted.
Definition TcpSocket.cpp:134
Definition Channel.cpp:12
@ Channel
constexpr size_t kMaxFrameSize
Maximum framed message size for Channel (1 MiB).
Definition NetTypes.h:13
@ ChClose
Definition Event.h:19
One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpReque...
Definition NetTypes.h:33