Class PipeLocation
- Namespace
- DiscordRPC.IO
- Assembly
- DiscordRPC.dll
Provides the location of the Discord IPC pipes for the current operating system.
public static class PipeLocation
- Inheritance
-
PipeLocation
- Inherited Members
Methods
GetPipes(int)
Generates a sequence of pipe names that Discord can use for the IPC for the current operating system.
public static IEnumerable<string> GetPipes(int startPipe = 0)
Parameters
startPipe
intThe starting index for the pipe names.
Returns
- IEnumerable<string>
An enumerable collection of pipe names.
Remarks
The names are ordered and will check multiple locations for a suitable pipe. For Unix systems, multiple TEMP directories are checked and multiple package managers are considered. This means that there is not a 1 to 1 mapping of pipe names to indices, as there are many locations for a single pipe index.