/** * This function is used internally for incoming connections. This function should never be called directly. * @param desc Socket Descriptor of the incoming connection. */ void ServerProtocolListenerTcp::incomingConnection(qintptr desc) { QReadLocker locker(&qxt_d().modemutex); QReadLocker locker2(&qxt_d().certmutex); ServerProtocolInstanceTcp* instance = new ServerProtocolInstanceTcp(server()); instance->setProperty("descriptor", desc); qxt_d().modemutex.lockForRead(); instance->setProperty("sslmode", qxt_d().sslmode); qxt_d().modemutex.unlock(); qxt_d().certmutex.lockForRead(); instance->setProperty("certificate", qxt_d().cert); qxt_d().certmutex.unlock(); prepareInstance(instance); }
/** * This function is used internally to handle incoming connections. This function should never, under any circumstance, be called directly. * @param socketDescriptor The descriptor of the newly opened socket */ void QtRpc::ServerProtocolListenerSocket::incomingConnection(quintptr socketDescriptor) { ServerProtocolInstanceSocket *instance = new ServerProtocolInstanceSocket(server()); instance->setProperty("descriptor", socketDescriptor); prepareInstance(instance); }