Resent: Partial PeekNamedPipe Implementation

Alexandre Julliard julliard at winehq.com
Mon Jul 22 13:26:06 CDT 2002


Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:

> 	wine/server/pipe.c, wine/server/named_pipe.c: xxx_get_info
> 	Return the number of bytes available for reading
> 	wine/dlls/kernel/sync.c: PeekNamedPipe
> 	Use get_file_info to get the number of bytes available for reading

I don't think it's a good idea to overload get_file_info that way. You
should retrieve the pipe file descriptor and do the FIONREAD on the
client side. We will need the file descriptor anyway to implement the
full peek functionality.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list