| 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 | { |
no test coverage detected