[PATCH] rpcrt4: Implement wait_for_incoming_data() for named pipes transport.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Sep 16 05:37:25 CDT 2019
Alexandre Julliard <julliard at winehq.org> wrote:
> > +static int rpcrt4_conn_np_wait_for_incoming_data(RpcConnection *conn)
> > {
> > - /* FIXME: implement when named pipe writes use overlapped I/O */
> > - return -1;
> > + RpcConnection_np *connection = (RpcConnection_np *)conn;
> > + HANDLE event;
> > +
> > + event = get_np_event(connection);
> > + if (!event) return -1;
> > +
> > + WaitForSingleObject(event, INFINITE);
> > + release_np_event(connection, event);
>
> How is that event going to be set?
Thanks for tha review. I blindly copied the code from the read() backend.
Hopefully new version is better.
--
Dmitry.
More information about the wine-devel
mailing list