阅读背景:

以扭曲协议定期运行功能

来源:互联网 

I am looking for a way to periodically send some data over all clients connected to a TCP port. I am looking at twisted python and I am aware of reactor.callLater. But how do I use it to send some data to all connected clients periodically ? The data sending logic is in Protocol class and it is instantiated by the reactor as needed. I don't know how to tie it from reactor to all protocol instances...I am looking for a way to periodically send som




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: