MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / beginSocketConnection

Method beginSocketConnection

Libraries/Http/HttpAsyncClient.cpp:255–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 return beginRequestSend();
254 }
255
256 return closeConnectionForReconnect();
257}
258
259Result HttpAsyncClient::closeConnectionForReconnect()
260{
261 reconnectPending = true;
262 state = State::Connecting;
263
264 if (transportShutdown.isValid())
265 {
266 Function<void(Result)> complete = {[this](Result result) { onReconnectTransportShutdown(result); }};
267 Result shutdown = transportShutdown(move(complete));
268 if (not shutdown)
269 {
270 reconnectPending = false;

Callers

nothing calls this directly

Calls 3

createAsyncTCPSocketMethod · 0.80
getAddressFamilyMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected