]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add support for Windows named pipes.
authorSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:04:01 +0000 (14:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:04:01 +0000 (14:04 +0000)
commit1b3edafcff9ddcd915a5725df2ac33cdc2a16b96
tree62b19a6caf90ffa8712f5d5b045bf3aaafb48a47
parent19fba3fe550785b2584264a59d3dccea81077451
Add support for Windows named pipes.

This commit adds two new support modules, winnpc.c and winnps.c, which
deal respectively with being a client and server of a Windows named
pipe (which, in spite of what Unix programmers will infer from that
name, is actually closer to Windows's analogue of a Unix-domain
socket). Each one provides a fully featured Socket wrapper around the
hairy Windows named pipe API, so that the rest of the code base should
be able to use these interchangeably with ordinary sockets and hardly
notice the difference.

As part of this work, I've introduced a mechanism in winhandl.c to
permit it to store handles of event objects on behalf of other Windows
support modules and deal with passing them to applications' main event
loops as necessary. (Perhaps it would have been cleaner to split
winhandl.c into an event-object tracking layer analogous to uxsel, and
the handle management which is winhandl.c's proper job, but this is
less disruptive for the present.)

[originally from svn r10069]
windows/winhandl.c
windows/winnpc.c [new file with mode: 0644]
windows/winnps.c [new file with mode: 0644]
windows/winstuff.h