MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / F

Method F

src/test/test_connector_filedescriptor.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 MockClientConnectionHandler handler;
31
32 F() {
33 pipe(c2sfd);
34 pipe(s2cfd);
35 server = new FileDescriptorServer(c2sfd[0], s2cfd[1]);
36 client = new FileDescriptorClient(s2cfd[0], c2sfd[1]);
37 server->SetHandler(&handler);
38 REQUIRE(server->StartListening());
39 }
40 ~F() {
41 server->StopListening();
42 delete server;

Callers

nothing calls this directly

Calls 2

SetHandlerMethod · 0.80
StartListeningMethod · 0.45

Tested by

no test coverage detected