mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
commit
ef96a58ed7
1 changed files with 8 additions and 2 deletions
|
@ -13,8 +13,14 @@ void AsyncPipe::createAsyncPipe(HANDLE iocp)
|
||||||
std::string pipeName = fmt("\\\\.\\pipe\\nix-%d-%p", GetCurrentProcessId(), (void *) this);
|
std::string pipeName = fmt("\\\\.\\pipe\\nix-%d-%p", GetCurrentProcessId(), (void *) this);
|
||||||
|
|
||||||
readSide = CreateNamedPipeA(
|
readSide = CreateNamedPipeA(
|
||||||
pipeName.c_str(), PIPE_ACCESS_INBOUND | FILE_FLAG_OVERLAPPED, PIPE_TYPE_BYTE, PIPE_UNLIMITED_INSTANCES, 0, 0,
|
pipeName.c_str(),
|
||||||
INFINITE, NULL);
|
PIPE_ACCESS_INBOUND | FILE_FLAG_OVERLAPPED,
|
||||||
|
PIPE_TYPE_BYTE,
|
||||||
|
PIPE_UNLIMITED_INSTANCES,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
INFINITE,
|
||||||
|
NULL);
|
||||||
if (!readSide)
|
if (!readSide)
|
||||||
throw WinError("CreateNamedPipeA(%s)", pipeName);
|
throw WinError("CreateNamedPipeA(%s)", pipeName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue