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

Bob Ippolito bob at redivi.com
Thu Aug 11 13:32:50 EDT 2005

On Aug 11, 2005, at 7:16 AM, 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)).
> I guess I would use "maybeDeferred" class to do that.
> How to pass the delay value.

No, you'd use callLater(delay, self.transport.write, str(msg))


More information about the Twisted-Python mailing list