MCPcopy Create free account
hub / github.com/FastLED/FastLED / sendData

Method sendData

src/fl/net/http/stream_server.cpp.hpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int HttpStreamServer::sendData(fl::span<const u8> data) {
134 if (!isConnected()) {
135 return -1;
136 }
137
138 // Broadcast to all clients
139 mNativeServer->broadcast(data);
140 return static_cast<int>(data.size());
141}
142
143int HttpStreamServer::recvData(fl::span<u8> buffer) {
144 if (!isConnected()) {

Callers

nothing calls this directly

Calls 2

broadcastMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected