serverName.startsWith(pipePath)) d->" /> serverName.startsWith(pipePath)) d->" /> serverName.startsWith(pipePath)) d->"/>

Why QLocalSocket is designed to be connected only to local pipes in "Windows"?

191 Views Asked by At

So in QT5.7.0 sources qlocalsocket_win.cpp there are lines:

const QLatin1String pipePath("\\\\.\\pipe\\");
if (d->serverName.startsWith(pipePath))
    d->fullServerName = d->serverName;
else
    d->fullServerName = pipePath + d->serverName;

So there aren't a chance to connect to a pipe on another PC. I've changed few lines, recompile Qt5Network.dll and all worked fine. Is there any reasons to bound QLocalSocket only to local pipes?

0

There are 0 best solutions below