예제 #1
0
 def readable(self):
     # Use of accepting requests here keeps from blocking asyncore.
     self.readable_calls.increment()
     return (AsyncChat.readable(self)
             and self.request_manager.accepting_requests())
예제 #2
0
파일: _http.py 프로젝트: mcruse/monotone
 def readable (self):
     # Use of accepting requests here keeps from blocking asyncore.
     self.readable_calls.increment()
     return (AsyncChat.readable(self) and 
             self.request_manager.accepting_requests())
예제 #3
0
 def readable(self):
     if int(time.time()) % 4 == 0:
         self.send_update()
     return chat.readable(self)
예제 #4
0
 def readable(self):
     self._client.pump(self)
     if int(time.time()) % 4 == 0:
         self.send_update()
     return chat.readable(self)
예제 #5
0
파일: channel.py 프로젝트: mcruse/monotone
 def readable(self):
     self.readable_calls.increment()
     return AsyncChat.readable(self)
예제 #6
0
 def readable(self):
     self.readable_calls.increment()
     return AsyncChat.readable(self)
예제 #7
0
 def readable(self):
     return self.started and async_chat.readable(self)