def _connect_client(self):
overlapped = OVERLAPPED()<EOL>overlapped.hEvent = create_event()<EOL>while True:<EOL><INDENT>success = windll.kernel32.ConnectNamedPipe(<EOL>self.pipe_handle,<EOL>byref(overlapped))<EOL>if success:<EOL><INDENT>return<EOL><DEDENT>last_error = windll.kernel32.GetLastError()<EOL>if last_error == ERROR_IO_PENDING:<EOL><INDENT>yield From(wait_for_event(overlapped.hEvent))<EOL>return  <EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>' + str(last_error))<EOL><DEDENT><DEDENT>
Wait for a client to connect to this pipe.