From 1a68f7c09cc9be03c1ed9f184f692c3be0a659a7 Mon Sep 17 00:00:00 2001 From: lateralusX Date: Wed, 7 Jul 2021 20:25:30 +0200 Subject: [PATCH] Add comment describing parsed formats. --- .../DiagnosticsIpc/IpcEndpointConfig.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcEndpointConfig.cs b/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcEndpointConfig.cs index db767e4f55..867cba276e 100644 --- a/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcEndpointConfig.cs +++ b/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcEndpointConfig.cs @@ -68,6 +68,26 @@ public IpcEndpointConfig(string address, TransportType transportType, PortType p _portType = portType; } + // Config format: [Address],[PortType] + // + // Address in UnixDomainSocket formats: + // myport => myport + // uds:myport => myport + // /User/mrx/myport.sock => /User/mrx/myport.sock + // uds:/User/mrx/myport.sock => /User/mrx/myport.sock + // uds://authority/User/mrx/myport.sock => /User/mrx/myport.sock + // uds:///User/mrx/myport.sock => /User/mrx/myport.sock + // + // Address in NamedPipe formats: + // myport => myport + // namedpipe:myport => myport + // \\.\pipe\myport => myport (dropping \\.\pipe\ is inline with implemented namedpipe client/server) + // namedpipe://./pipe/myport => myport (dropping authority and /pipe/ is inline with implemented namedpipe client/server) + // namedpipe:/pipe/myport => myport (dropping /pipe/ is inline with implemented namedpipe client/server) + // namedpipe://authority/myport => myport + // namedpipe:///myport => myport + // + // PortType: Listen|Connect, default Listen. public static bool TryParse(string config, out IpcEndpointConfig result) { try