simon-svn: putty: simon

tartarus-commits at lists.tartarus.org tartarus-commits at lists.tartarus.org
Sun Aug 27 11:00:36 BST 2006


SVN root:       svn://ixion.tartarus.org/main
Changes by:     simon
Revision:       6813
Date:           2006-08-27 11:00:36 +0100 (Sun, 27 Aug 2006)

Log message (17 lines):
Grow some nasty warts on the side of winhandl.c, in preparation for
a serial port backend:
 - In order to do simultaneous reading and writing on the same
   HANDLE, you must enable overlapped access and pass an OVERLAPPED
   structure to each ReadFile and WriteFile call. This would make
   sense if it were an optional thing I could do if I wanted to do
   the reading and writing in the same thread, but making it
   mandatory even if I'm doing them in _different_ threads is just
   annoying and arbitrary.
 - Serial ports occasionally return length 0 from ReadFile, for no
   particularly good reason. Fortunately serial ports also don't
   have a real EOF condition to speak of, so ignoring EOFs is
   actually a viable response in spite of sounding utterly gross.
Hence, handle_{input,output}_new() now accept a flags parameter,
which includes a flag to enable the OVERLAPPED bureaucracy and a
flag to cause EOFs to be ignored on input handles. The current
clients of winhandl.c do not use either of these.

Modified files:
U   putty/windows/winhandl.c
U   putty/windows/winplink.c
U   putty/windows/winproxy.c
U   putty/windows/winstuff.h

Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6813&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/windows/winhandl.c?rev=6813&r1=6812&r2=6813
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/windows/winplink.c?rev=6813&r1=6812&r2=6813
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/windows/winproxy.c?rev=6813&r1=6812&r2=6813
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/putty/windows/winstuff.h?rev=6813&r1=6812&r2=6813



More information about the tartarus-commits mailing list