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)
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)