PipeServer(TMessage).WaitForConnection Method

Tungsten Suite

PipeServerTMessageWaitForConnection Method

Creats a new NamedPipeServerStream and Waits for a client to connect

Namespace:  W.IO.Pipes
Assembly:  Tungsten.IO.Pipes (in Tungsten.IO.Pipes.dll) Version: 2.0.3
Syntax
C#
public bool WaitForConnection(
	string pipeName,
	int maxConnections = -1
)

Parameters

pipeName
Type: SystemString
The name of the pipe
maxConnections (Optional)
Type: SystemInt32
The maximum number of pipes with this name

Return Value

Type: Boolean
True if the server was created and is waiting, otherwise False
See Also