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.
  __timedOut(self)

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

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                                                                  

_TimeoutMixin__timeoutCall

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Fri Feb 2 11:44:39 2007 http://epydoc.sf.net