MCPcopy Create free account
hub / github.com/apache/thrift / createClient

Method createClient

lib/cpp/test/processor/ProcessorTest.cpp:262–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 const std::shared_ptr<Handler>& getHandler() const { return handler_; }
261
262 std::shared_ptr<Client> createClient() {
263 typedef typename ServiceTraits_::Protocol Protocol;
264
265 std::shared_ptr<TSocket> socket(new TSocket("127.0.0.1", port_));
266 std::shared_ptr<Transport_> transport(new Transport_(socket));
267 std::shared_ptr<Protocol> protocol(new Protocol(transport));
268 transport->open();
269
270 std::shared_ptr<Client> client(new Client(protocol));
271 return client;
272 }
273
274private:
275 uint16_t port_;

Callers 13

NodeClient.jsFile · 0.45
testParentServiceFunction · 0.45
testChildServiceFunction · 0.45
testSeparateConnectionsFunction · 0.45
testOnewayCallFunction · 0.45
testExpectedErrorFunction · 0.45
testUnexpectedErrorFunction · 0.45
client.mjsFile · 0.45
client.jsFile · 0.45
client.jsFile · 0.45

Calls 1

openMethod · 0.45

Tested by

no test coverage detected