Winsock2 & overlapped IO

Martin Wilck Martin.Wilck at
Fri Nov 9 02:24:32 CST 2001

On Thu, 8 Nov 2001, Francois Gouget wrote:

>    MS has two separate structures, one in winbase.h and one in
> winsock(2).h. So from a Winelib point of view we should have two
> separate structures too.

That's why I changed that. I don't think it causes actual problems, all
elements can easily be casted into each other.

Thinking about my proposition to introduce a union in async_private,
it may not be such a good idea after all. It would only be necessary
if we were relying on the size of an async_private struct somewhere
(e.g. using arrays of async_private's). This seems not to be the case,
and thus we can take a similar approach as is taken with sock_addr
structs. More reasonable than the union would be a header
field indicating the type of the asycnc_private struct in question,
but they can also be identified through the function pointers they use.


Martin Wilck                Phone: +49 5251 8 15113
Fujitsu Siemens Computers   Fax:   +49 5251 8 20409
Heinz-Nixdorf-Ring 1	    mailto:Martin.Wilck at
D-33106 Paderborn 

More information about the wine-devel mailing list