[patch] review requested - NamedPipe Message mode (was Reliable Datagram / Stream behaviour of NT Pipes)

Luke Kenneth Casson Leighton lkcl at lkcl.net
Sat Jan 31 15:34:17 CST 2009


http://bugs.winehq.org/attachment.cgi?id=19132

ok this is the beginnings of an implementation of messagemode, it
passes the test1 and send2recv2 tests and fails the shortread test as
part of PeekNamedPipe().  i'm not exactly sure why, yet.  i get the
distinct feeling that there's confusion over who writes into the
wineserver data structures what the "availdata" is.  msrpc.exe says
"set availdata to 9", msrpcd.exe says "set it to 0, we did a write!"
and it's all just ohhhh dear.

also i have double-copies of server_set_named_pipe_info(), one in
kernel32 and another in ntdll because i am using it in both places, i
think SetNamedPipeHandleState() should be calling an NtFsControlIo
rather than using server_set_named_pipe_info() but for the life of me
i _really_ don't want to be finding out what the heck that function is
:)  hmm, maybe i can find out by copying ntdll.dll over to wine and
doing a WINEDEBUG=trace+ntdll,kernel32 to see what functions get
called.

anyway the primary purpose of submitting the patch is to ask people if
i'm along the right lines.  anything seriously objectionable, etc.
etc.

l.



More information about the wine-devel mailing list