--- /dev/null
+struct Hello {
+ 1: i32 simple,
+ 2: map<i32,i32> complex,
+ 3: map<i32, map<i32,i32>> complexer,
+}
+
+exception Goodbye {
+ 1: i32 simple,
+ 2: map<i32,i32> complex,
+ 3: map<i32, map<i32,i32>> complexer,
+}
+
+service SmallService {
+ Hello testMe(1:i32 hello, 2: Hello wonk) throws (1: Goodbye g),
+ void testVoid() throws (1: Goodbye g),
+ i32 testI32(1:i32 boo)
+}
# Compiler flags
DCFL = -Wall -O3 -g -I./gen-cpp $(include_flags) -L$(thrift_home)/lib/cpp/.libs -lthrift -levent
-CFL = -Wall -O3 -I./gen-cpp $(include_flags) -L$(thrift_home)/lib/cpp/.libs -lthrift -levent
+LFL = -L$(thrift_home)/lib/cpp/.libs -lthrift -levent
+CCFL = -Wall -O3 -I./gen-cpp $(include_flags)
+CFL = $(CCFL) $(LFL)
all: server client
client: stubs
g++ -o TestClient $(CFL) src/TestClient.cpp ./gen-cpp/ThriftTest.cpp ./gen-cpp/ThriftTest_types.cpp
+small:
+ $(THRIFT) -cpp ../SmallTest.thrift
+ g++ -c $(CCFL) ./gen-cpp/SmallService.cpp ./gen-cpp/SmallTest_types.cpp
+
clean:
rm -fr TestServer TestClient gen-cpp
transport = bufferedSocket;
}
- shared_ptr<TBinaryProtocol> protocol(new TBinaryProtocol(transport, transport));
+ shared_ptr<TBinaryProtocol> protocol(new TBinaryProtocol(transport));
ThriftTestClient testClient(protocol);
uint64_t time_min = 0;