Home
last modified time | relevance | path

Searched refs:client (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/thrift-3.4.0/test/lua/
Dtest_basic_client.lua29 local client
32 if client then
34 client:close()
88 client = ThriftTestClient:new{
91 assert(client, 'Failed to create client')
98 assertEqual(client:testString('lala'), 'lala', 'Failed testString')
99 assertEqual(client:testString('wahoo'), 'wahoo', 'Failed testString')
102 assertEqual(client:testBool(true), true, 'Failed testBool true')
103 assertEqual(client:testBool(false), false, 'Failed testBool false')
106 assertEqual(client:testByte(0x01), 1, 'Failed testByte 1')
[all …]
/thrift-3.4.0/lib/go/test/tests/
Dthrifttest_driver.go30 client thrifttest.ThriftTest member
34 func NewThriftTestDriver(t *testing.T, client thrifttest.ThriftTest) *ThriftTestDriver {
35 return &ThriftTestDriver{client, t}
39 client := p.client
42 if client.TestVoid(defaultCtx) != nil {
46 if r, err := client.TestString(defaultCtx, "Test"); r != "Test" || err != nil {
50 if r, err := client.TestString(defaultCtx, ""); r != "" || err != nil {
82 if r, err := client.TestString(defaultCtx, stringTest); r != stringTest || err != nil {
92 …if r, err := client.TestString(defaultCtx, specialCharacters); r != specialCharacters || err != ni…
96 if r, err := client.TestByte(defaultCtx, 1); r != 1 || err != nil {
[all …]
/thrift-3.4.0/lib/rb/spec/
Dnonblocking_server_spec.rb130 @clients.each { |client, trans| trans.close }
139 client = SpecNamespace::NonblockingService::Client.new(protocol)
141 @clients << [client, transport]
142 client
149 client = setup_client
154 result << client.block
156 client.unblock(args.first)
158 result << client.greeting(true) # ignore result
160 client.sleep(args[0] || 0.5)
163 client.shutdown
[all …]
/thrift-3.4.0/lib/js/test/
Dphantom-client.js94 var client = new ThriftTest.ThriftTestClient(protocol);
114 equal(client.testVoid(), undefined);
121 equal(client.testBinary(binary), binary);
132 equal(client.testBinary(arr), binary);
135 equal(client.testString(''), '');
136 equal(client.testString(stringTest), stringTest);
143 equal(client.testString(specialCharacters), specialCharacters);
146 equal(client.testDouble(0), 0);
147 equal(client.testDouble(-1), -1);
148 equal(client.testDouble(3.14), 3.14);
[all …]
Dtest.js52 const client = new ThriftTest.ThriftTestClient(protocol); constant
90 assert.equal(client.testVoid(), undefined);
97 assert.equal(client.testBinary(binary), binary);
108 assert.equal(client.testBinary(arr), binary);
111 assert.equal(client.testString(''), '');
112 assert.equal(client.testString(stringTest), stringTest);
119 assert.equal(client.testString(specialCharacters), specialCharacters);
122 assert.equal(client.testDouble(0), 0);
123 assert.equal(client.testDouble(-1), -1);
124 assert.equal(client.testDouble(3.14), 3.14);
[all …]
Dtest-async.js52 client.testVoid(function(result) {
62 client.testString('', function(result) {
66 client.testString(stringTest, function(result) {
76 client.testString(specialCharacters, function(result) {
84 client.testDouble(0, function(result) {
88 client.testDouble(-1, function(result) {
92 client.testDouble(3.14, function(result) {
96 client.testDouble(Math.pow(2, 60), function(result) {
105 client.testByte(0, function(result) {
109 client.testByte(0x01, function(result) {
[all …]
Dtest-es6.js53 client.testVoid().then(function(result) {
62 client.testString('').then(function(result) {
66 client.testString(stringTest).then(function(result) {
75 client.testString(specialCharacters).then(function(result) {
84 client.testDouble(0).then(function(result) {
88 client.testDouble(-1).then(function(result) {
92 client.testDouble(3.14).then(function(result) {
96 client.testDouble(Math.pow(2, 60)).then(function(result) {
105 client.testByte(0).then(function(result) {
109 client.testByte(0x01).then(function(result) {
[all …]
Dtest-jq.js45 const client = new ThriftTest.ThriftTestClient(protocol);
49 data: client.send_testI32(Math.pow(-2, 31)),
55 assert.equal(client.recv_testI32(), Math.pow(-2, 31));
72 const client = new ThriftTest.ThriftTestClient(protocol);
77 data: client.send_testI64(Math.pow(-2, 52)),
84 assert.equal(client.recv_testI64(), Math.pow(-2, 52));
101 client.testI32(Math.pow(2, 30), function(result) {
106 const jqxhr = client.testI32(Math.pow(-2, 31), function(result) {
122 client.testI64(Math.pow(2, 52), function(result) {
128 client.testI64(Math.pow(-2, 52), function(result) {
[all …]
/thrift-3.4.0/lib/ts/test/
Dphantom-client.ts102 var client = new ThriftTest.ThriftTestClient(protocol);
122 equal(client.testVoid(), undefined);
129 equal(client.testBinary(binary), binary);
143 equal(client.testBinary(hexEncodedString), binary);
146 equal(client.testString(''), '');
147 equal(client.testString(stringTest), stringTest);
154 equal(client.testString(specialCharacters), specialCharacters);
157 equal(client.testDouble(0), 0);
158 equal(client.testDouble(-1), -1);
159 equal(client.testDouble(3.14), 3.14);
[all …]
Dtest.ts10 const client: ThriftTest.ThriftTestClient = new ThriftTest.ThriftTestClient(protocol); constant
50 assert.equal(client.testVoid(), undefined);
57 assert.equal(client.testBinary(binary), binary);
71 assert.equal(client.testBinary(hexEncodedString), binary);
74 assert.equal(client.testString(''), '');
75 assert.equal(client.testString(stringTest), stringTest);
82 assert.equal(client.testString(specialCharacters), specialCharacters);
85 assert.equal(client.testDouble(0), 0);
86 assert.equal(client.testDouble(-1), -1);
87 assert.equal(client.testDouble(3.14), 3.14);
[all …]
/thrift-3.4.0/test/swift/CrossTests/Sources/TestClient/
Dmain.swift33 var client: ThriftTestClient variable
39 client = ThriftTestClient(inoutProtocol: proto)
103 try client.testVoid() in testVoid()
109 let r1 = try client.testString(thing: s1) in testString1()
151 let r1 = try client.testBool(thing: s1) in testBool1()
165 if try client.testByte(thing: 63) != 63 { in testByte()
168 if try client.testByte(thing: -127) != -127 { in testByte()
175 if try client.testI32(thing: -1) != -1 { in testI32()
178 if try client.testI32(thing: 0) != 0 { in testI32()
185 if try client.testI64(thing: 1) != 1 || in testI64()
[all …]
/thrift-3.4.0/contrib/Rebus/ServiceImpl/
DServer.cs61 var client = new MathResponseClient("localhost"); in Ping()
62 client.Pong(value); in Ping()
68 var client = new MathResponseClient("localhost"); in DoTheMath()
70 client.FourResults( arg1+arg2, arg1*arg2, arg1-arg2, arg1/arg2); in DoTheMath()
72 client.ThreeResults( arg1+arg2, arg1*arg2, arg1-arg2); in DoTheMath()
101 var client = new BasicMathClient.Client(prot); in SerializeThriftCall()
103 action(client); in SerializeThriftCall()
118 SerializeThriftCall(client => in Pong()
120 client.Pong(value); in Pong()
127 SerializeThriftCall(client => in ThreeResults()
[all …]
/thrift-3.4.0/test/go/src/bin/testclient/
Dmain.go44 client, _, err := common.StartClient(*host, *port, *domain_socket, *transport, *protocol, *ssl)
49 callEverything(client)
68 func callEverything(client *thrifttest.ThriftTestClient) {
70 if err = client.TestVoid(defaultCtx); err != nil {
74 thing, err := client.TestString(defaultCtx, "thing")
82 bl, err := client.TestBool(defaultCtx, true)
89 bl, err = client.TestBool(defaultCtx, false)
97 b, err := client.TestByte(defaultCtx, 42)
105 i32, err := client.TestI32(defaultCtx, 4242)
113 i64, err := client.TestI64(defaultCtx, 424242)
[all …]
/thrift-3.4.0/contrib/transport-sample/
DMakefile14 default: server client
15 .PHONY: server client
20 client: target
21 …g++ ${CPP_OPTS} ${CPP_DEFS} -o client/client ${GEN_INC} ${INCS_DIRS} client/client.cpp ${GEN_SRC} …
24 $(RM) -r client/client server/server
/thrift-3.4.0/tutorial/rb/
DRubyClient.rb34 client = Calculator::Client.new(protocol)
38 client.ping()
41 sum = client.add(1,1)
44 sum = client.add(1,4)
52 diff = client.calculate(1, work)
55 log = client.getStruct(1)
62 quot = client.calculate(1, work)
68 client.zip()
/thrift-3.4.0/tutorial/dart/
DMakefile.am41 pub-get: pub-get-gen pub-get-client pub-get-console-client pub-get-server
51 pub-get-client:
52 cd client; ${DARTPUB} get
54 pub-get-console-client:
63 tutorialclient: pub-get-gen pub-get-client
64 cd client; ${DARTPUB} serve
66 tutorialconsoleclient: pub-get-console-client
70 client/web/client.dart \
71 client/web/index.html \
72 client/web/styles.css \
[all …]
/thrift-3.4.0/lib/py/src/server/
DTServer.py83 client = self.serverTransport.accept()
84 if not client:
87 itrans = self.inputTransportFactory.getTransport(client)
97 otrans = self.outputTransportFactory.getTransport(client)
124 client = self.serverTransport.accept()
125 if not client:
127 t = threading.Thread(target=self.handle, args=(client,))
135 def handle(self, client): argument
136 itrans = self.inputTransportFactory.getTransport(client)
146 otrans = self.outputTransportFactory.getTransport(client)
[all …]
/thrift-3.4.0/tutorial/py.tornado/
DPythonClient.py53 client = Calculator.Client(transport, pfactory)
56 yield client.ping()
60 sum_ = yield client.add(1, 1)
65 client.zip()
70 client.zip()
80 quotient = yield client.calculate(1, work)
90 diff = yield client.calculate(1, work)
94 log = yield client.getStruct(1)
98 client._transport.close()
/thrift-3.4.0/lib/nodejs/test/
Dtest_driver.js37 exports.ThriftTestDriver = function(client, callback) { argument
48 client[fnName](expected, function(err, actual) {
75 client.testBinary(buf, function(err, response) {
81 client.testBinary(buf.toString("binary"), function(err, response) {
87 client.testMapMap(42, function(err, response) {
96 client.testStruct(testCases.out, function(err, response) {
101 client.testNest(testCases.out2, function(err, response) {
106 client.testInsanity(testCases.crazy, function(err, response) {
111 client.testInsanity(testCases.crazy2, function(err, response) {
116 client.testException("TException", function(err, response) {
[all …]
/thrift-3.4.0/lib/nodejs/lib/thrift/
Dcreate_client.js50 var client = new ServiceClient(transport, connection.protocol);
51 transport.client = client;
52 connection.client = client;
53 return client;
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/async/
DTestTAsyncClientManager.java91 Srv.AsyncClient client = getClient(); in testBasicCall() local
92 basicCall(client); in testBasicCall()
97 Srv.AsyncClient client = getClient(); in testBasicCallWithTimeout() local
98 client.setTimeout(5000); in testBasicCallWithTimeout()
99 basicCall(client); in testBasicCallWithTimeout()
106 C client = in runTest() local
121 assertTrue(client.hasError()); in runTest()
124 assertSame(exception, client.getError()); in runTest()
125 validateError(client, exception); in runTest()
144 abstract void validateError(C client, Exception error); in validateError() argument
[all …]
/thrift-3.4.0/lib/nodets/test/
Dtest_driver.ts38 export function ThriftTestDriver(client: ThriftTest.Client, callback: (status: string) => void) {
48 (<any>client)[fnName](expected, function(err: any, actual: any) {
61 client.testMapMap(42, function(err, response) {
70 client.testStruct(testCases.out, function(err, response) {
75 client.testNest(testCases.out2, function(err, response) {
80 client.testInsanity(testCases.crazy, function(err, response) {
85 client.testException("TException", function(err, response) {
90 client.testException("Xception", function(err, response) {
97 client.testException("no Exception", function(err, response) {
102 client.testOneway(0, function(err, response) {
[all …]
/thrift-3.4.0/tutorial/d/
Dclient.d19 module client; variable
23 import thrift.codegen.client;
35 auto client = tClient!Calculator(protocol); in main() local
39 client.ping(); in main()
42 int sum = client.add(1, 1); in main()
50 int quotient = client.calculate(1, work); in main()
59 int diff = client.calculate(1, work); in main()
62 auto log = client.getStruct(1); in main()
/thrift-3.4.0/lib/c_glib/test/
Dtestbufferedtransport.c179 ThriftTransport *client = NULL; in thrift_socket_server_open() local
187 client = thrift_server_transport_accept (transport, NULL); in thrift_socket_server_open()
188 g_assert (client != NULL); in thrift_socket_server_open()
189 thrift_socket_close (client, NULL); in thrift_socket_server_open()
190 g_object_unref (client); in thrift_socket_server_open()
200 ThriftTransport *client = NULL; in thrift_server() local
211 client = g_object_new (THRIFT_TYPE_BUFFERED_TRANSPORT, "transport", in thrift_server()
214 g_assert (client != NULL); in thrift_server()
217 bytes = thrift_buffered_transport_read (client, buf, 10, NULL); in thrift_server()
222 bytes = thrift_buffered_transport_read (client, buf, 1, NULL); in thrift_server()
[all …]
/thrift-3.4.0/lib/d/test/
Dthrift_test_client.d29 import thrift.codegen.client;
132 auto client = tClient!ThriftTest(protocol); in main() local
147 client.testVoid(); in main()
151 string s = client.testString("Test"); in main()
156 byte u8 = client.testByte(1); in main()
161 int i32 = client.testI32(-1); in main()
166 long i64 = client.testI64(-34359738368L); in main()
171 double dub = client.testDouble(-5.2098523); in main()
183 auto in1 = client.testStruct(out1); in main()
192 auto in2 = client.testNest(out2); in main()
[all …]

12345678910>>...12