bool AsyncMcServerWorker::addSecureClientSocket( int fd, const std::shared_ptr<folly::SSLContext>& context, void* userCtxt) { folly::AsyncSSLSocket::UniquePtr sslSocket( new folly::AsyncSSLSocket(context, &eventBase_, fd, /* server = */ true)); return addClientSocket(std::move(sslSocket), userCtxt); }
void AsyncMcServerWorker::addSecureClientSocket( int fd, const std::shared_ptr<folly::SSLContext>& context, void* userCtxt) { folly::AsyncSSLSocket::UniquePtr sslSocket( new folly::AsyncSSLSocket( context, &eventBase_, fd, /* server = */ true)); sslSocket->sslAccept(&simpleHandshakeCallback, /* timeout = */ 0); addClientSocket(std::move(sslSocket), userCtxt); }
void QxtSmtp::connectToSecureHost(const QString& hostName, quint16 port) { qxt_d().useSecure = true; qxt_d().state = QxtSmtpPrivate::StartState; sslSocket()->connectToHostEncrypted(hostName, port); }
/*! Opens a SSL connection to the server \a hostName on \a port. \sa connectToHost() */ void QxtPop3::connectToSecureHost(const QString& hostName, quint16 port) { d_func()->useSecure = true; d_func()->state = QxtPop3Private::StartState; sslSocket()->connectToHostEncrypted(hostName, port); }