Help transfering files XMPP
-
Hi i am doing one chat for xmpp to send and receive files. But i have one problem because when i send files or receive my firewall intercept this transference. So since my chat i can't send or receive files.
This is only the main of one example i'm checking:int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); argc = 2; argv[1] = "send"; // we want one argument : "send" or "receive" if (argc != 2 || (strcmp(argv[1], "send") && strcmp(argv[1], "receive"))) { fprintf(stderr, "Usage: %s send|receive\n", "prueba ", argv[0]); return EXIT_FAILURE; } xmppClient client; client.logger()->setLoggingType(QXmppLogger::StdoutLogging); if (!strcmp(argv[1], "send")) { client.setRecipient("qxmpp.test2@qxmpp.org"); client.connectToServer("qxmpp.test1@qxmpp.org", "qxmpp123"); } else { client.connectToServer("qxmpp.test2@qxmpp.org", "qxmpp456"); } return app.exec(); }
So i think when i start this automatically i can't send or receive files. Maybe because i run this with main function of my program?? i ask because i'm doing one chat and it's important and for learning thx.
Source:
https://github.com/qxmpp-project/qxmpp
example 3 -
Maybe you need to add an exception to your firewall for your client program.
http://www.dummies.com/computers/pcs/computer-security/how-to-allow-firewall-exceptions-on-your-windows-10-laptop/ -
Hi
You can do it yourself via native SDK
https://msdn.microsoft.com/en-us/library/ee417690(VS.85).aspxor find an installer that will do it for you.
http://nsis.sourceforge.net/NSIS_Simple_Firewall_Pluginor use commandline
netsh firewall add allowedprogram <path> <name> -
Hi
You can do it yourself via native SDK
https://msdn.microsoft.com/en-us/library/ee417690(VS.85).aspxor find an installer that will do it for you.
http://nsis.sourceforge.net/NSIS_Simple_Firewall_Pluginor use commandline
netsh firewall add allowedprogram <path> <name> -
ok. Those commands do work but do not cover all version versions.
I think xp and vista is different. -
ok. Those commands do work but do not cover all version versions.
I think xp and vista is different.