win32pipe.WaitNamedPipe

WaitNamedPipe(pipeName, timeout)

Waits until either a time-out interval elapses or an instance of the specified named pipe is available to be connected to (that is, the pipe's server process has a pending win32pipe::ConnectNamedPipe operation on the pipe).

Parameters

pipeName : PyUnicode

The name of the pipe

timeout : int

The number of milliseconds the function will wait. instead of a literal value, you can specify one of the following values for the timeout:

Value Meaning


NMPWAIT_USE_DEFAULT_WAITThe time-out interval is the default value specified by the server process in the CreateNamedPipe function.
NMPWAIT_WAIT_FOREVERThe function does not return until an instance of the named pipe is available