Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Help transfering files XMPP
QtWS25 Last Chance

Help transfering files XMPP

Scheduled Pinned Locked Moved Solved 3rd Party Software
8 Posts 2 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by A Former User
    #1

    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

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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/

      1 Reply Last reply
      1
      • RIVOPICOR Offline
        RIVOPICOR Offline
        RIVOPICO
        wrote on last edited by
        #3

        yes but i want to do one chat for many users. So i can't say them add exceptions.... for this i need to solve with code. Maybe because i run this in the main function of my program. I need to do separate i think...

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          Hi
          You can do it yourself via native SDK
          https://msdn.microsoft.com/en-us/library/ee417690(VS.85).aspx

          or find an installer that will do it for you.
          http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin

          or use commandline
          netsh firewall add allowedprogram <path> <name>

          RIVOPICOR 1 Reply Last reply
          2
          • RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by
            #5

            i will try with code because i can avoid this. And learn more about code at the same time.

            1 Reply Last reply
            2
            • mrjjM mrjj

              Hi
              You can do it yourself via native SDK
              https://msdn.microsoft.com/en-us/library/ee417690(VS.85).aspx

              or find an installer that will do it for you.
              http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin

              or use commandline
              netsh firewall add allowedprogram <path> <name>

              RIVOPICOR Offline
              RIVOPICOR Offline
              RIVOPICO
              wrote on last edited by
              #6

              @mrjj one thing about this if i use the command line i'm supposing that i can create this rule. But in the reality i couldn't. So my chat it's blocked equal.

              1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                ok. Those commands do work but do not cover all version versions.
                I think xp and vista is different.

                RIVOPICOR 1 Reply Last reply
                1
                • mrjjM mrjj

                  ok. Those commands do work but do not cover all version versions.
                  I think xp and vista is different.

                  RIVOPICOR Offline
                  RIVOPICOR Offline
                  RIVOPICO
                  wrote on last edited by RIVOPICO
                  #8

                  Solved i include this line manager->setProxy(); and after put the connection with proxy thxx

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved