bool CTransferSocket::InitBackend() { if (m_pBackend) return true; if (m_pControlSocket->m_protectDataChannel) { if (!InitTls(m_pControlSocket->m_pTlsSocket)) return false; } else m_pBackend = new CSocketBackend(this, m_pSocket); return true; }
bool CTransferSocket::InitBackend() { if (m_pBackend) { return true; } #ifdef FZ_WINDOWS // For send buffer tuning add_timer(fz::duration::from_seconds(1), false); #endif if (controlSocket_.m_protectDataChannel) { if (!InitTls(controlSocket_.m_pTlsSocket)) { return false; } } else { m_pBackend = new CSocketBackend(this, *m_pSocket, engine_.GetRateLimiter()); } return true; }