discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] how to wait in python


From: mjam01
Subject: Re: [Discuss-gnuradio] how to wait in python
Date: Wed, 14 Jun 2006 12:18:53 +0100

hey, here's a threading example from some python I have been playing with:
--------------------------


#start of python code...

import threading

class nicethread ( threading.Thread ):
    def __init__ ( self,remoteip ):
        self.remoteip = remoteip
        threading.Thread.__init__ ( self )
   
    def run (self):
        #tcp socket ok server code
        #run your code here...
        print self.remoteip



#start the thread with this...

nicethread().start()


hope this makes sense to you.

Mike



On 6/14/06, Vincenzo Pellegrini <address@hidden> wrote:
thank you very much for the suggestion.

I'll try, even if I'm not yet able to start and manage a thread as I'm a
beginner.
I'm gonna learn about it and let you know how it goes.

have you got any useful examples/links that can set me on the right way?

thanks

vincenzo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]