To test whether Apache Thrift is installed and works properly, we will generate some code for a service, which does nothing. Don't worry; we will get straight to your first fully-working application in Chapter 3, Running Your First Apache Thrift Service and Client. Now is the time to just check whether everything is in place.
Use the following code in Apache Thrift's IDL and put it in some file, that is, test.thrift
:
# this is just a Test service, which contains two methods service Test { # this method probably does nothing void donothing(), # this method probably multiplies two numbers i32 multiply(1:i32 number1, 2:i32 number2), }
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
As you may see, we defined...