The idea suggested is to use the following interface:
settings->ServerHostname = "|"
settings->ServerPort = SocketFD
UINT32 optval;
socklen_t optlen;
BOOL ipcSocket = FALSE;
+ BOOL useExternalDefinedSocket = FALSE;
if (!hostname)
return -1;
if (hostname[0] == '/')
ipcSocket = TRUE;
+ if (hostname[0] == '|')
+ useExternalDefinedSocket = TRUE;
+
if (ipcSocket)
{
sockfd = freerdp_uds_connect(hostname);
if (sockfd < 0)
return -1;
+ } else if (useExternalDefinedSocket)
+ {
+ sockfd = port;
}
else
{