Skip to content

Commit

Permalink
Add comment describing parsed formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
lateralusX committed Jul 7, 2021
1 parent e747756 commit 1a68f7c
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a68f7c

Please sign in to comment.