http://bugs.winehq.org/show_bug.cgi?id=17195
--- Comment #23 from Luke Kenneth Casson Leighton lkcl@lkcl.net 2009-02-14 12:04:16 --- Created an attachment (id=19449) --> (http://bugs.winehq.org/attachment.cgi?id=19449) design / data structure document
here's a write-up of the design i had to do. socketpairs have to be used in "simplex" NOT duplex. if you try to use a socketpair for both reading and writing.... err... how? you have ten messages written by client-to-server but only two written server-to-client, how do you preserve message-mode semantics _and_ save a few socketpairs? i don't want to think about how nasty the design would be - safer to just use the socketpairs for a single purpose: write in only one of them, and only read from the other.