[Twisted-Python] Send messages in an Infinite loop
Hello all: I am newbie to use twisted. I want to send message in an Infinite loop in server, such as send a timestamp each 5s to all clients. i have tried to use like "deferToThread" and "callFromThread", but i am failed.if have any suggestions please tell me. thanks.
Look at twisted.internet.task.LoopingCall.
Justin Venus
On Jul 9, 2012 12:53 AM, "kangta123"
Hello all:
I am newbie to use twisted. I want to send message in an Infinite loop in server, such as send a timestamp each 5s to all clients. i have tried to use like "deferToThread" and "callFromThread", but i am failed.if have any suggestions please tell me.
thanks.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Justin Venus
-
kangta123