[GCompris-devel] GCompris Network
JAZEIX Johnny
jazeix at gmail.com
Wed Jul 27 19:21:25 UTC 2016
Hi,
In the chat example
(http://doc.qt.io/qt-5/qtnetwork-network-chat-example.html) the Client
is an attribute of the ChatDialog class so it's created in the
constructor of it.
Not sure if it can be useful but:
http://qmlbook.github.io/en/ch11/index.html
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)?
Johnny
On 07/27/16 17:17, Emmanuel Charruau wrote:
> Hi Everybody,
>
> I want to add networking to GCompris to be able to have a mater
> GCompris able to talk with slaves GCompris.
> I compiled and tested chat-network fro.m qt creator examples.
>
> Qt5.7.0/Examples/Qt-5.7/network/network-chat/
>
> works really well on a single pc.
>
> It works with qt network module to scan the network around and should
> be able on its own to see all the machines around.
>
> So I created a new version of gcompris using network-chat and included
> some code in gcompris main core.
>
> 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.
>
> Client is supposed to be an object but there is no way for me to see
> where this object is created!
>
> here is the code
> https://github.com/allon49/GCompris-qt/tree/network
>
> If you compile it you will see that it does not find client.
>
> 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.
>
> Could someone have a look to tell me where the object client should be
> created?
>
> Regards,
>
> Emmanuel
>
>
>
> _______________________________________________
> GCompris-devel mailing list
> GCompris-devel at kde.org
> https://mail.kde.org/mailman/listinfo/gcompris-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20160727/3bfdd5b8/attachment.html>
More information about the GCompris-devel
mailing list