1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 12:02:47 -05:00

Ensure our network layer is properly cleaned up before PuTTY exits.

Specifically, we explicitly closesocket() all open sockets, which
appears to be necessary since otherwise Windows sends RST rather
than FIN. I'm _sure_ that's a Windows bug, but there we go.

[originally from svn r1574]
This commit is contained in:
Simon Tatham
2002-03-06 20:13:22 +00:00
parent f1ece56e40
commit dac0d45699
15 changed files with 94 additions and 42 deletions

View File

@ -62,6 +62,7 @@ struct plug_function_table {
void sk_init(void); /* called once at program startup */
void sk_cleanup(void); /* called just before program exit */
SockAddr sk_namelookup(char *host, char **canonicalname);
void sk_getaddr(SockAddr addr, char *buf, int buflen);