示例#1
0
 def Send(self, data):
     """Returns the number of bytes sent after enoding."""
     outgoing = dumps(data) + self.endchars.encode()
     self.sendqueue.append(outgoing)
     return len(outgoing)
示例#2
0
	def Send(self, data):
		"""Returns the number of bytes sent after encoding."""
		outgoing = dumps(data) + self.endchars.encode()
		self.sendqueue.append(outgoing)
		return len(outgoing)