<br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 11:27 AM, Kevin Horn <span dir="ltr">&lt;<a href="mailto:kevin.horn@gmail.com">kevin.horn@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote">On Tue, Nov 10, 2009 at 7:25 AM, morbidux <span dir="ltr">&lt;<a href="mailto:morbidux@free.fr" target="_blank">morbidux@free.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi all,<br>
<br>
I&#39;m writing a simple client / server application, that uses a small<br>
protocol to dialog.<br>
<br>
I can&#39;t find in documentation any exemple that would correspond to what my<br>
client is supposed to do.<br>
<br>
Here is the basics :<br>
<br>
 every X seconds, call a function that check a file<br>
  if file is different, connect to server<br>
<br>
When the client is connected, it immediatly sends data to server, using<br>
the connectionMade method.<br>
<br>
Do I need to use while(1) loop or loopingCall ? What is the best way to<br>
write a daemon that connect to a server every X seconds ?<br>
<br>
Many thanks.<br></blockquote></div></blockquote><div><br>What platform? For linux you could do away with the polling and use the python bindings to inotify.<br>On OSX there are bindings to FSEvent API. Much better than a polling solution. <br>
</div></div><br>-- <br>Jarrod Roberson<br>678.551.2852<br>