Hi,<br><br>I don't know if this will help a little, but here is how i do a broadcast to find workstations on my net:<br><br><a href="http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/core/workstations/workstations.py#L1469">http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/core/workstations/workstations.py#L1469</a> (server side)<br>
<a href="http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-client/core/network/network.py#L232">http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-client/core/network/network.py#L232</a> (client side)<br>
<br>Cheers.<br><br><div class="gmail_quote">2010/6/5 Philippe Crave <span dir="ltr"><<a href="mailto:philippe.crave@gmail.com">philippe.crave@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
thanks, I will check that.<br>
<br>
What I am looking for, is a way to get several applications (made with<br>
pyqt) exchanging data. they will be on different PCs, on a local<br>
network.<br>
and there will be 2 or 3 applications on each PC.<br>
<br>
I would like that each application send its data, when ready, to all<br>
the others (other application on the same PC, and other applications<br>
on the other PCs).<br>
<br>
so far, the best I could find is that each application should send a<br>
socket to all the others, one by one.<br>
I did not find a way to broadcast. If someone know how to do it, that will help.<br>
and then, each application runs a threaded QTcpServer.<br>
<br>
then, I am looking for a way for the applications to find the others<br>
on the network (ie, find the adress/port)<br>
that's why I try to understand the chat sample.<br>
<br>
<br>
2010/6/5 Gustavo A. Díaz <<a href="mailto:gustavo.diaz@gmail.com">gustavo.diaz@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Ehmmm... now that I see better is another example, but maybe you could have<br>
> some code as example.<br>
><br>
> 2010/6/5 Gustavo A. Díaz <<a href="mailto:gustavo.diaz@gmail.com">gustavo.diaz@gmail.com</a>><br>
>><br>
>> I used it for my application with some improvements. Read it in these<br>
>> classes:<br>
>><br>
>><br>
>> <a href="http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/core/workstations/workstations.py#L503" target="_blank">http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/core/workstations/workstations.py#L503</a><br>
>><br>
>> <a href="http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-client/core/chat/chatClient.py" target="_blank">http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-client/core/chat/chatClient.py</a><br>
>><br>
>> Cheers.<br>
>><br>
>><br>
>> 2010/6/5 Philippe Crave <<a href="mailto:philippe.crave@gmail.com">philippe.crave@gmail.com</a>><br>
>>><br>
>>> Hello,<br>
>>><br>
>>> is there somewhere the network-chat example in python ?<br>
>>> <a href="http://doc.qt.nokia.com/4.6/network-network-chat.html" target="_blank">http://doc.qt.nokia.com/4.6/network-network-chat.html</a><br>
>>><br>
>>> thank you,<br>
>>><br>
>>> philippe<br>
>>> _______________________________________________<br>
>>> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
>>> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Gustavo A. Díaz<br>
>> GDNet Projects<br>
>> <a href="http://www.gdnet.com.ar" target="_blank">www.gdnet.com.ar</a><br>
><br>
><br>
><br>
> --<br>
> Gustavo A. Díaz<br>
> GDNet Projects<br>
> <a href="http://www.gdnet.com.ar" target="_blank">www.gdnet.com.ar</a><br>
><br>
> _______________________________________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
><br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div></div></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>
GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a><br>