Package twisted :: Package protocols :: Module policies :: Class TimeoutMixin
[show private | hide private]
[frames | no frames]

Class TimeoutMixin

Known Subclasses:
HTTPChannel

Mixin for protocols which wish to timeout connections
Method Summary
  callLater(self, period, func)
  resetTimeout(self)
Reset the timeout count down
  setTimeout(self, period)
Change the timeout period
  timeoutConnection(self)
Called when the connection times out.

Class Variable Summary
NoneType timeOut: The number of seconds after which to timeout the connection.

Method Details

resetTimeout(self)

Reset the timeout count down

setTimeout(self, period)

Change the timeout period
Parameters:
period - The period, in seconds, to change the timeout to, or None to disable the timeout.
           (type=int or NoneType)

timeoutConnection(self)

Called when the connection times out. Override to define behavior other than dropping the connection.

Class Variable Details

timeOut

The number of seconds after which to timeout the connection.
Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Sat Apr 14 13:16:07 2007 http://epydoc.sf.net