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

Function makeServer

tests/fl/stl/asio/http/native_client.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35static ServerGuard makeServer(const ConnectionConfig& config = ConnectionConfig()) {
36 ServerGuard g;
37 g.ptr = fl::make_unique<NativeHttpServer>(kAnyPort, config);
38 if (g.ptr->start()) {
39 g.port = g.ptr->port();
40 return g;
41 }
42 g.ptr.reset();
43 return g;
44}
45
46// Server thread: runs accept + update in background, posts results via atomics/mutex.
47// This is the standard net-thread-to-main pattern: a dedicated networking thread

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 4

ConnectionConfigClass · 0.85
startMethod · 0.45
portMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected