<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      In the chat example
      (<a class="moz-txt-link-freetext" href="http://doc.qt.io/qt-5/qtnetwork-network-chat-example.html">http://doc.qt.io/qt-5/qtnetwork-network-chat-example.html</a>)  the
      Client is an attribute of the ChatDialog class so it's created in
      the constructor of it.<br>
      <br>
      Not sure if it can be useful but:
      <a class="moz-txt-link-freetext" href="http://qmlbook.github.io/en/ch11/index.html">http://qmlbook.github.io/en/ch11/index.html</a><br>
      <br>
      I'm not a network developer but I would say that by default, all
      instances of gcompris that are started are client and we need to
      add an option in command line to be server (I don't know if we
      really want to have a gcompris instance server)?<br>
      <br>
      Johnny<br>
      <br>
      On 07/27/16 17:17, Emmanuel Charruau wrote:<br>
    </div>
    <blockquote
cite="mid:CA+jbWcH59rfmb1Z=wyPaxsavvsyyWQ-2_12zfj=ZNMCS6tffEg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi Everybody,<br>
                  <br>
                  I want to add networking to GCompris to be able to
                  have a mater GCompris able to talk with slaves
                  GCompris.<br>
                  I compiled and tested chat-network fro.m qt creator
                  examples.<br>
                  <br>
                  Qt5.7.0/Examples/Qt-5.7/network/network-chat/<br>
                  <br>
                  works really well on a single pc.<br>
                  <br>
                  It works with qt network module to scan the network
                  around and should be able on its own to see all the
                  machines around.<br>
                  <br>
                  So I created a new version of gcompris using
                  network-chat and included some code in gcompris main
                  core.<br>
                  <br>
                  There is a part at the moment which is done in
                  original chatdialog.cpp that I want to use in main.cpp
                  which uses client.<br>
                  <br>
                  Client is supposed to be an object but there is no way
                  for me to see where this object is created!<br>
                  <br>
                  here is the code<br>
                  <a moz-do-not-send="true"
                    href="https://github.com/allon49/GCompris-qt/tree/network">https://github.com/allon49/GCompris-qt/tree/network</a><br>
                  <br>
                </div>
                If you compile it you will see that it does not find
                client.<br>
                <br>
              </div>
              You can find client working on the original network-chat
              in
/home/charruau/Qt5.7.0/Examples/Qt-5.7/network/network-chat/chat-dialog.cpp
              line 67.<br>
              <br>
            </div>
            Could someone have a look to tell me where the object client
            should be created?<br>
            <br>
          </div>
          Regards,<br>
          <br>
        </div>
        Emmanuel<br>
        <div>
          <div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GCompris-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GCompris-devel@kde.org">GCompris-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/gcompris-devel">https://mail.kde.org/mailman/listinfo/gcompris-devel</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>