void ExtUdpManager::openPort(quint16 _port) { //Initialization socket->close(); if(socket->bind(_port)) emit(openPortStatus(true)); else emit(openPortStatus(false)); }
void ExtHttpManager::openPort(quint16 port) { //Initialization close(); if(listen(QHostAddress::Any, port)) emit(openPortStatus(true)); else emit(openPortStatus(false)); }