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

Method initPipe

PIMELauncher/PipeServer.cpp:293–298  ·  view source on GitHub ↗

References: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365588(v=vs.85).aspx

Source from the content-addressed store, hash-verified

291// References:
292// https://msdn.microsoft.com/en-us/library/windows/desktop/aa365588(v=vs.85).aspx
293void PipeServer::initPipe(uv_pipe_t* pipe, const wchar_t* appName, SECURITY_ATTRIBUTES* sa) {
294 auto utf8PipeName = utf8Codec.to_bytes(getPipeName(appName));
295 uv_pipe_init_windows_named_pipe(uv_default_loop(), pipe, 0, PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE, sa);
296 pipe->data = this;
297 uv_pipe_bind(pipe, utf8PipeName.c_str());
298}
299
300
301void PipeServer::acceptClient(PipeClient* client) {

Callers

nothing calls this directly

Calls 2

to_bytesMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected