blob: 464c8ce91e5cf6beb719590905ab2a5ba9cac152 [file] [log] [blame]
Roger Meier122803b2012-06-18 20:23:58 +00001/*
Jens Geyer944b8e62022-09-11 12:30:35 +02002 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20/*
Roger Meier122803b2012-06-18 20:23:58 +000021 transport-sample thrift IDL file .
22 Execute thriftme.bat under Windows to generate the cpp stubs from this IDL.
23 */
24
25// See thrift/tutorial/tutorial.thrift and shared.thrift for more extensive examples.
26
27
28namespace cpp Sample
29namespace java Sample
30namespace perl Sample
31
32//This struct is not used in the sample. Shown here for illustrative purposes only.
33//
34struct SampleStruct
35{
36 1: i32 key
37 2: string value
38}
39
40
41//A service contains the RPC(s).
42//
43service SampleService
44{
45 string HelloThere(1:string HelloString),
46 void ServerDoSomething(),
47
48 //Client calls this to tell server which port to connect back on.
49 void ClientSideListenPort(1:i16 Port),
50 //Named pipe version
51 void ClientSidePipeName(1:string name),
52}
53
54//Sample RPC on the 'client' side that the master server can call.
55service SampleCallback
56{
57 void pingclient(),
58}