示例#1
0
文件: _http.py 项目: mcruse/monotone
 def send(self,data):
     self.write_calls.increment()
     bytecount = 0
     if self._is_connected:
         bytecount = AsyncChat.send(self, data)
     self.bytes_out.increment(bytecount)
     self.server.bytes_out.increment(bytecount)
     return bytecount
示例#2
0
 def send(self, data):
     self.write_calls.increment()
     bytecount = 0
     if self._is_connected:
         bytecount = AsyncChat.send(self, data)
     self.bytes_out.increment(bytecount)
     self.server.bytes_out.increment(bytecount)
     return bytecount
示例#3
0
 def send(self, data):
     self.write_calls.increment()
     result = AsyncChat.send(self, data)
     self.bytes_out.increment(result)
     return result
示例#4
0
 def send(self, data):
     self.write_calls.increment()
     result = AsyncChat.send(self, data)
     self.bytes_out.increment(result)
     return result