471,355 Members | 2,067 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,355 software developers and data experts.

LoopingCall vs internet.TimerService (Twisted)

I guess this is not the most appropriate forum but i tried the twisted
forum to not avail so here goes.

I have written a server which accepts connections from clients, takes
requests and adds them to a Queue (a python object of Queue.Queue).
Now i have two approaches

a) At startup, my server(a subclass of pb.Root) runs a "dispatcher"
function using task.LoopingCall(dispatcher).start(0.1)
b)Create a separate subclass of internet.TimerService whose function
is dispatcher

[INFO: dispatcher has methods like obj.callRemote, addCallback and

I checked the source and it seems Loopingcall is implemented through
callLaters//Callbacks and TimerService has LoopingCall in it.

So which is better, neater, safer? loopingcall of timerservice? also
is it safe to do the calls mentioned in INFO within dispatcher?

Thank you for your time

Oct 3 '07 #1
0 1618

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Fazer | last post: by
11 posts views Thread by mir nazim | last post: by
12 posts views Thread by Cliff Wells | last post: by
2 posts views Thread by Taki Jeden | last post: by
6 posts views Thread by Kartic | last post: by
3 posts views Thread by Efrat Regev | last post: by
3 posts views Thread by Jia Lu | last post: by
1 post views Thread by sndive | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.