putty/unix
Simon Tatham 19fba3fe55 Replace the hacky 'OSSocket' type with a closure.
The mechanism for constructing a new connection-type Socket when a
listening one receives an incoming connection previously worked by
passing a platform-specific 'OSSocket' type to the plug_accepting
function, which would then call sk_register to wrap it with a proper
Socket instance. This is less flexible than ideal, because it presumes
that only one kind of OS object might ever need to be turned into a
Socket. So I've replaced OSSocket throughout the code base with a pair
of parameters consisting of a function pointer and a context such that
passing the latter to the former returns the appropriate Socket; this
will permit different classes of listening Socket to pass different
function pointers.

In deference to the reality that OSSockets tend to be small integers
or pointer-sized OS handles, I've made the context parameter an
int/pointer union that can hold either of those directly, rather than
the usual approach of making it a plain 'void *' and requiring a
context structure to be dynamically allocated every time.

[originally from svn r10068]
2013-11-17 14:03:55 +00:00
..
configure.ac Fix build failures on Ubuntu 13.10. 2013-10-26 14:00:10 +00:00
gtkcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
gtkcols.c Reinstate all the GTK1-specific code under ifdefs, and verify that 2008-04-04 10:56:26 +00:00
gtkcols.h Stop including <gtk/gtkcontainer.h> directly, since a user points out 2012-07-01 16:55:36 +00:00
gtkdlg.c Fix cut-and-paste errors in nonfatal() implementations. 2013-09-23 14:35:08 +00:00
gtkfont.c Fix another giant batch of resource leaks. (Mostly memory, but there's 2013-07-14 10:46:07 +00:00
gtkfont.h Support font fallback even when an X11 server-side font is selected, 2011-09-16 19:18:54 +00:00
gtkwin.c Only run one toplevel callback per event loop iteration. 2013-09-15 14:05:31 +00:00
unix.h Replace the hacky 'OSSocket' type with a closure. 2013-11-17 14:03:55 +00:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Tighten up a lot of casts from unsigned to int which are read by one 2013-07-14 10:45:54 +00:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Two related changes to timing code: 2012-09-18 21:42:48 +00:00
uxgen.c Fix another giant batch of resource leaks. (Mostly memory, but there's 2013-07-14 10:46:07 +00:00
uxgss.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxmisc.c Centralise calls to fcntl into functions that carefully check the 2013-07-19 18:10:02 +00:00
uxnet.c Replace the hacky 'OSSocket' type with a closure. 2013-11-17 14:03:55 +00:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxplink.c Fix cut-and-paste errors in nonfatal() implementations. 2013-09-23 14:35:08 +00:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Two more memory leak fixes, on error paths I didn't spot in r9919. 2013-07-21 07:40:26 +00:00
uxpterm.c Revamp net_pending_errors using toplevel callbacks. 2013-08-17 16:06:27 +00:00
uxpty.c When I turned fcntls into noncloexecs in r9940, I missed one. 2013-07-21 07:40:28 +00:00
uxputty.c Add some missing calls to cleanup_exit. 2013-07-19 17:44:47 +00:00
uxsel.c Changed my mind about r7164. Instead of checking for zero flags 2007-01-26 20:00:32 +00:00
uxser.c Fix another giant batch of resource leaks. (Mostly memory, but there's 2013-07-14 10:46:07 +00:00
uxsftp.c Only run one toplevel callback per event loop iteration. 2013-09-15 14:05:31 +00:00
uxsignal.c
uxstore.c Fix error checking in uxstore.c: add a missing check, and fix a 2013-07-21 07:40:30 +00:00
uxucs.c Rationalise null pointer checks in both decode_codepage functions, so 2013-07-22 07:12:05 +00:00
xkeysym.c
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00