]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
commitc617603987d0966b1ab82cc958f288edf9e2f67a
tree62b19a6caf90ffa8712f5d5b045bf3aaafb48a47
parent302dbd51f23d526ddd9262a84a08cd0ac928e9c3
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.)

git-svn-id: http://svn.tartarus.org/sgt/putty@10069 cda61777-01e9-0310-a592-d414129be87e
windows/winhandl.c
windows/winnpc.c [new file with mode: 0644]
windows/winnps.c [new file with mode: 0644]
windows/winstuff.h