MCPcopy Create free account
hub / github.com/defold/defold / CreateSSLSocket

Method CreateSSLSocket

engine/dlib/src/dlib/http_client.cpp:230–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 }
229
230 Result Response::CreateSSLSocket(const char* host, int timeout)
231 {
232 if (m_Socket == 0)
233 {
234 return RESULT_SOCKET_ERROR;
235 }
236
237 dmConnectionPool::Result r = dmConnectionPool::CreateSSLSocket(m_Pool, m_Connection, host, timeout, &m_Client->m_SocketResult);
238 if (r == dmConnectionPool::RESULT_OK)
239 {
240 m_SSLSocket = dmConnectionPool::GetSSLSocket(m_Pool, m_Connection);
241 return RESULT_OK;
242 }
243 else
244 {
245 return RESULT_SOCKET_ERROR;
246 }
247 }
248
249 Response::~Response()
250 {

Callers 1

DoRequestFunction · 0.80

Calls 2

CreateSSLSocketFunction · 0.85
GetSSLSocketFunction · 0.85

Tested by

no test coverage detected