def handleFTData(self, ftID, data): d = protocol_pb2.FileTransferData() d.ftid = ftID d.data = data message = WRAP(d.SerializeToString(), protocol_pb2.WrapperMessage.TYPE_FT_DATA); self.send(message)
def handleFTContinuePayload(self, data): payload = protocol_pb2.FileTransferData() if (payload.ParseFromString(data) == False): #TODO: ERROR return self.handleFTContinueRequest(payload.ftID)