Это то, что у меня сейчас есть в качестве демонстрационного приложения, чтобы попытаться предоставить POC. Это серверная часть C++:
Код: Выделить всё
#include
#include
#include
#include
#include
// Handle client communication
void handleClientCommunication(HANDLE hPipe) {
char buffer[512];
DWORD bytesRead, bytesWritten;
BOOL result;
while (true) {
// Read from client
result = ReadFile(hPipe, buffer, sizeof(buffer), &bytesRead, NULL);
if (!result || bytesRead == 0) {
if (GetLastError() == ERROR_BROKEN_PIPE) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78702412/full-duplex-named-pipes-on-windows[/url]