]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add a Socket implementation which just holds an error message.
authorSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:03:36 +0000 (14:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:03:36 +0000 (14:03 +0000)
commita6139c1ad37a2a854e4bd4fae8e8d59bf1a1e83d
tree57c481456db1dfe40f0c25415cee9b9cbb50e527
parent0bc76b825280ef59ce97a74fc9a8d6fa90a2fb61
Add a Socket implementation which just holds an error message.

This isn't yet used, but I plan to use it in situations where you have
to report errors by returning a valid Socket on which the client wlil
call sk_socket_error, but in fact you notice the error _before_
instantiating your usual kind of Socket. The resulting Socket is
usable for nothing except reading out the error string and closing it.

[originally from svn r10065]
Recipe
errsock.c [new file with mode: 0644]
network.h