[Twisted-Python] how to delay the response in the protocol.Protocol

William Waites ww at groovy.net
Thu Aug 11 13:23:14 EDT 2005

On Thu, Aug 11, 2005 at 10:16:14AM -0700, Andrzej Leszczynski wrote:
> In the protocol derived class and dataReceived
> function, I need to send response with given delay
> using self.transport.write(str(msg)).

how about reactor.callLater(delay, self.transport.write, str(msg))?


More information about the Twisted-Python mailing list