davinciomare
8th October 2016, 13:49
Hi when i actÃ*vate QXmppTransferJob in the main of my program all time the firewall intercept this connection. Some way to include some message or to do alone for avoiding this alert.. I am doing one chat in xmpp servr and client. My doubt is for example in this function:
void MainWindow::llegadaDatosArchivo(QXmppTransferJob* transferencia){
/** Función invocada para recibir un archivo enviado por el cliente **/
archivoRecibido = new QFile(directorio.path() + "/" + archivo);
archivoRecibido->open(QFile::WriteOnly);
transferencia->accept(archivoRecibido);
}
I can include in the function some type like QXmppMessage &mensaje for waiting the client send me the message and then... start trasfering files. Something like that.
Thx in advance.
void MainWindow::llegadaDatosArchivo(QXmppTransferJob* transferencia){
/** Función invocada para recibir un archivo enviado por el cliente **/
archivoRecibido = new QFile(directorio.path() + "/" + archivo);
archivoRecibido->open(QFile::WriteOnly);
transferencia->accept(archivoRecibido);
}
I can include in the function some type like QXmppMessage &mensaje for waiting the client send me the message and then... start trasfering files. Something like that.
Thx in advance.