Rev 30 | Blame | Compare with Previous | Last modification | View Log | RSS feed
Thrift TutorialLicense=======Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this work for additional informationregarding copyright ownership. The ASF licenses this fileto you under the Apache License, Version 2.0 (the"License"); you may not use this file except in compliancewith the License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,software distributed under the License is distributed on an"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied. See the License for thespecific language governing permissions and limitationsunder the License.Tutorial========1) First things first, you'll need to install the Thrift compiler and thelanguage libraries. Do that using the instructions in the top levelREADME file.2) Read tutorial.thrift to learn about the syntax of a Thrift file3) Compile the code for the language of your choice:$ thrift$ thrift -r --gen cpp tutorial.thrift4) Take a look at the generated code.5) Look in the language directories for sample client/server code.6) That's about it for now. This tutorial is intentionally brief. It should bejust enough to get you started and ready to build your own project.