Lines Matching defs:frame
45 // if the data is too large, it will be split into multiple frames, the first frame will be marked as 0x0
46 // and the last frame will be marked as 0x1.
47 // we just add the 'isLast' parameter to indicate whether it is the last frame.
55 const auto frame = CreateFrame(isLast, frameType, message);
56 if (!SendUnderLock(frame)) {
110 LOGW("Received unsupported data frame, opcode = %{public}d", wsFrame.opcode);
118 // A Pong frame sent in response to a Ping frame must have identical
119 // "Application data" as found in the message body of the Ping frame
123 LOGE("Failed to read ping frame payload");
149 LOGE("Received websocket frame is invalid - header is %02x%02x", recvbuf[0], recvbuf[1]);
224 const auto frame = CreateFrame(true, FrameType::PONG, std::move(payload));
225 if (!SendUnderLock(frame)) {
226 LOGE("Decode: Send pong frame failed");
232 const auto frame = CreateFrame(true, FrameType::CLOSE, ToString(status));
233 if (!SendUnderLock(frame)) {
234 LOGE("SendCloseFrame: Send close frame failed");
248 // can close connection right after sending back close frame.