Example #1
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
Example #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
Example #3
0
 def send(self, data):
     self.write_calls.increment()
     result = AsyncChat.send(self, data)
     self.bytes_out.increment(result)
     return result
Example #4
0
 def send(self, data):
     self.write_calls.increment()
     result = AsyncChat.send(self, data)
     self.bytes_out.increment(result)
     return result