MCPcopy Create free account
hub / github.com/EasyIME/PIME / onNewClientConnected

Method onNewClientConnected

PIMELauncher/PipeServer.cpp:312–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312void PipeServer::onNewClientConnected(uv_stream_t* server, int status) {
313 auto server_pipe = reinterpret_cast<uv_pipe_t*>(server);
314 auto client = new PipeClient{this, server_pipe->pipe_mode, server_pipe->security_attributes };
315 acceptClient(client);
316 client->startRead();
317}
318
319bool PipeServer::initSingleInstance() {
320 singleInstanceMutex_ = ::CreateMutex(NULL, FALSE, singleInstanceMutexName_);

Callers 1

execMethod · 0.80

Calls 1

startReadMethod · 0.45

Tested by

no test coverage detected