Unfortunately QLocalSocket prevents from connecting to other servers, and only allows to connect to local pipe servers (well, surely to satisfy the "Local" in the class name.
With a small hack that could be fixed however, I think changing the server name adjustment in qlocalsocket_win.cpp could do the trick:
Original:
if (name.startsWith(pipePath))
d->fullServerName = name;
else
d->fullServerName = pipePath + name;
QString pipePath = QLatin1String("\\\\.\\pipe\\");
if (name.startsWith(pipePath))
d->fullServerName = name;
else
d->fullServerName = pipePath + name;
To copy to clipboard, switch view to plain text mode
Hacked:
d->fullServerName = name;
else
d->fullServerName = pipePath + name;
QString pipePath = QLatin1String("\\\\.\\pipe\\");
if (name.startsWith(QLatin1String("\\\\")))
d->fullServerName = name;
else
d->fullServerName = pipePath + name;
To copy to clipboard, switch view to plain text mode
Bookmarks