• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

as3/H04-Feb-2021-194163

c_glib/H04-Feb-2021-1,7431,257

cl/H04-Feb-2021-932715

cpp/H03-May-2022-1,261981

d/H04-Feb-2021-1,6321,306

dart/H04-Feb-2021-1,5761,302

delphi/H04-Feb-2021-589527

erl/H04-Feb-2021-337171

go/H04-Feb-2021-1,130882

haxe/H04-Feb-2021-1,9571,593

hs/H04-Feb-2021-1,8851,537

java/H04-Feb-2021-1,152853

js/H03-May-2022-1,081833

netstd/H04-Feb-2021-2,4511,908

nodejs/H03-May-2022-698575

ocaml/H04-Feb-2021-214184

perl/H04-Feb-2021-891695

php/H04-Feb-2021-941704

py/H04-Feb-2021-874663

py.tornado/H04-Feb-2021-885670

py.twisted/H04-Feb-2021-910685

rb/H04-Feb-2021-853662

rs/H04-Feb-2021-1,3531,020

Makefile.amH A D04-Feb-20211.9 KiB11669

Makefile.inH A D04-Feb-202125.2 KiB856742

README.mdH A D04-Feb-20211.4 KiB4332

shared.thriftH A D04-Feb-20211.3 KiB4438

tutorial.thriftH A D04-Feb-20214.8 KiB158138

README.md

1Thrift Tutorial
2
3License
4=======
5
6Licensed to the Apache Software Foundation (ASF) under one
7or more contributor license agreements. See the NOTICE file
8distributed with this work for additional information
9regarding copyright ownership. The ASF licenses this file
10to you under the Apache License, Version 2.0 (the
11"License"); you may not use this file except in compliance
12with the License. You may obtain a copy of the License at
13
14  http://www.apache.org/licenses/LICENSE-2.0
15
16Unless required by applicable law or agreed to in writing,
17software distributed under the License is distributed on an
18"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19KIND, either express or implied. See the License for the
20specific language governing permissions and limitations
21under the License.
22
23Tutorial
24========
25
261) First things first, you'll need to install the Thrift compiler and the
27   language libraries. Do that using the instructions in the top level
28   README.md file.
29
302) Read tutorial.thrift to learn about the syntax of a Thrift file
31
323) Compile the code for the language of your choice:
33```
34     $ thrift
35     $ thrift -r --gen cpp tutorial.thrift
36```
374) Take a look at the generated code.
38
395) Look in the language directories for sample client/server code.
40
416) That's about it for now. This tutorial is intentionally brief. It should be
42   just enough to get you started and ready to build your own project.
43