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

Method connect

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

Source from the content-addressed store, hash-verified

30}
31
32bool HttpStreamServer::connect() {
33 // If already listening, return true
34 if (isConnected()) {
35 return true;
36 }
37
38 // Start listening
39 if (!mNativeServer->start()) {
40 return false;
41 }
42
43 // Mark connection as established in base class
44 mConnection.onConnected();
45
46 return true;
47}
48
49void HttpStreamServer::disconnect() {
50 if (mNativeServer) {

Callers

nothing calls this directly

Calls 2

onConnectedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected