def accept_client(self, timeout=None):
            scaled_timeout = None
            if timeout is not None:
                scaled_timeout = int(timeout * 1000)
            self.__pipe_handle = win32pipe.CreateNamedPipe(self.__full_pipe_name, win32pipe.PIPE_ACCESS_OUTBOUND,
                                                           win32pipe.PIPE_TYPE_BYTE | win32pipe.PIPE_WAIT,
                                                           1, 65536, 65536, scaled_timeout, None)

            return win32pipe.ConnectNamedPipe(self.__pipe_handle, None) == 0
Blocks until a client connects to the server.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_windows.py/PipeRedirectorServer.ServerChannel.accept_client