void Phone::newTCPConnection(int socket) { // qWarning(QString("Phone::newTCPConnection(%1)").arg(socket)); connections++; int callId = newCall(); if (callId >= 0) { calls[callId]->start(socket, IHU_TCP); receivedCall(callId); } else { close(socket); } }
void Phone::newUDPConnection(int socket) { // qWarning(QString("Phone::newUDPConnection(%1)").arg(socket)); connections++; delete notifier; notifier = NULL; int callId = newCall(); if (callId >= 0) { calls[callId]->start(socket, IHU_UDP); receivedCall(callId); } else { close(socket); } waitCalls(inport, true, false); }
void PTUser::callReceived(const std::string &user) { std::cout << "USER CALL RECEIVED " << user << std::endl; emit receivedCall(user); }