simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Nov 17 14:04:03 GMT 2013


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10069
Date:           2013-11-17 14:04:01 +0000 (Sun, 17 Nov 2013)

Log message (18 lines):
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.)

Modified files:
U   putty/windows/winhandl.c
A   putty/windows/winnpc.c
A   putty/windows/winnps.c
U   putty/windows/winstuff.h

Links:
http://svn.tartarus.org/sgt/?rev=10069&view=rev
http://svn.tartarus.org/sgt/putty/windows/winhandl.c?rev=10069&r1=10068&r2=10069
http://svn.tartarus.org/sgt/putty/windows/winnpc.c?rev=10069&view=markup
http://svn.tartarus.org/sgt/putty/windows/winnps.c?rev=10069&view=markup
http://svn.tartarus.org/sgt/putty/windows/winstuff.h?rev=10069&r1=10068&r2=10069



More information about the tartarus-commits mailing list