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

Method platformConnect

src/fl/stl/asio/http/native_client.cpp.hpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool NativeHttpClient::platformConnect() {
159 // Delegate to tcp::socket::connect using the endpoint
160 if (mSocket.is_open()) {
161 platformDisconnect();
162 }
163
164 asio::error_code ec = mSocket.connect(mEndpoint);
165 return ec.ok();
166}
167
168void NativeHttpClient::platformDisconnect() {
169 mSocket.close();

Callers

nothing calls this directly

Calls 3

is_openMethod · 0.45
connectMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected