def send(self, type, seq, data):
        try:
            self.send_lock.acquire()
            if seq is None:
                seq = self.seq
                self.seq += 1
            header = struct.pack(self.HEADER_FORMAT, type, seq, len(data))
            self.stream.write(header + data + "\r\n")
            return seq
        finally:
            self.send_lock.release()
sends the given (type, seq, data) frame
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/Rpyc/Channel.py/Channel.send