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

Method init

Libraries/Http/HttpAsyncClient.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace SC
13{
14Result HttpAsyncClient::init(HttpConnectionBase& storage)
15{
16 connection = &storage;
17 connection->readableSocketStream.setAutoDestroy(false);
18 connection->writableSocketStream.setAutoDestroy(false);
19 connectAsync.callback.bind<HttpAsyncClient, &HttpAsyncClient::onConnected>(*this);
20 return Result(true);
21}
22
23Result HttpAsyncClient::close()
24{

Callers 3

ensureConnectedMethod · 0.45
onConnectedMethod · 0.45

Calls 1

ResultClass · 0.50

Tested by

no test coverage detected