载入中...
搜索中...
未找到
Channel.cpp
浏览该文件的文档.
96 auto payload = std::make_shared<std::vector<char>>(buffer_.begin(), buffer_.begin() + pendingLen_);
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:13
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
TCP socket backed by Poco::Net; supports both client (connect) and server (listen/accept) roles....
Definition TcpSocket.h:30
Network * network() const
Internal: owning module (used by Network::pump / NetWorker).
Definition TcpSocket.h:65
bool send(eve::data::ByteData *data)
Sends a framed byte payload; true when queued/accepted.
Definition TcpSocket.cpp:134
A named event carrying an ordered list of Variant payloads. Pushed messages are heap-allocated; the q...
Definition PlatformEvent.h:77
Definition Channel.cpp:12
@ Channel
constexpr size_t kMaxFrameSize
Maximum framed message size for Channel (1 MiB).
Definition NetTypes.h:13
@ ChClose
One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpReque...
Definition NetTypes.h:33