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
Forum Updated to NodeBB v4.3 + New Features

Help transfering files XMPP

Scheduled Pinned Locked Moved Solved 3rd Party Software
8 Posts 2 Posters 2.0k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    RIVOPICO
    wrote on 8 Oct 2016, 10:32 last edited by A Former User 10 Sept 2016, 14:44
    #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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 8 Oct 2016, 11:10 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
      • R Offline
        R Offline
        RIVOPICO
        wrote on 8 Oct 2016, 11:22 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
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 8 Oct 2016, 11:25 last edited by mrjj 10 Aug 2016, 11:26
          #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>

          R 1 Reply Last reply 8 Oct 2016, 18:01
          2
          • R Offline
            R Offline
            RIVOPICO
            wrote on 8 Oct 2016, 13:04 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
            • M mrjj
              8 Oct 2016, 11:25

              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>

              R Offline
              R Offline
              RIVOPICO
              wrote on 8 Oct 2016, 18:01 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
              • M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 8 Oct 2016, 18:26 last edited by
                #7

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

                R 1 Reply Last reply 8 Oct 2016, 19:19
                1
                • M mrjj
                  8 Oct 2016, 18:26

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

                  R Offline
                  R Offline
                  RIVOPICO
                  wrote on 8 Oct 2016, 19:19 last edited by RIVOPICO 10 Aug 2016, 19:41
                  #8

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

                  1 Reply Last reply
                  1

                  1/8

                  8 Oct 2016, 10:32

                  • Login

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