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

..--

c_glib/11-Mar-2024-804445

cl/11-Mar-2024-264146

cpp/11-Mar-2024-403239

d/11-Mar-2024-318182

dart/11-Mar-2024-905666

delphi/11-Mar-2024-638540

erl/11-Mar-2024-337171

go/11-Mar-2024-457304

haxe/11-Mar-2024-1,263997

java/11-Mar-2024-544331

js/11-Mar-2024-585393

netstd/11-Mar-2024-1,6201,166

nodejs/11-Mar-2024-371211

ocaml/11-Mar-2024-214184

perl/11-Mar-2024-247144

php/11-Mar-2024-296152

py/11-Mar-2024-229111

py.tornado/11-Mar-2024-241119

py.twisted/11-Mar-2024-265133

rb/11-Mar-2024-209111

rs/11-Mar-2024-706467

swift/11-Mar-2024-286129

Makefile.amD11-Mar-20241.9 KiB11467

README.mdD11-Mar-20241.4 KiB4332

shared.thriftD11-Mar-20241.3 KiB4438

tutorial.thriftD11-Mar-20244.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