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

Robert de Bath's big patch:

- cope with strange WinSock wrappers not supporting SIOCATMARK
  - define yet more terminal compatibility modes
  - support UK-ASCII (just like US-ASCII but # is a sterling sign)
  - support connection keepalives at a configurable interval

[originally from svn r692]
This commit is contained in:
Simon Tatham
2000-10-09 12:53:32 +00:00
parent e48981def4
commit fd5588d087
7 changed files with 303 additions and 98 deletions

View File

@ -631,8 +631,11 @@ static int telnet_msg (WPARAM wParam, LPARAM lParam) {
case FD_CLOSE:
{
int clear_of_oob = 1;
if (ioctlsocket (s, SIOCATMARK, &clear_of_oob) < 0 )
return -20000-WSAGetLastError();
/* Don't check for error return; some shims don't support
* this ioctl.
*/
ioctlsocket (s, SIOCATMARK, &clear_of_oob);
in_synch = !clear_of_oob;
@ -747,6 +750,12 @@ static void telnet_special (Telnet_Special code) {
send_opt (o_echo.nsend, o_echo.option);
}
break;
case TS_PING:
if (o_they_sga.state == ACTIVE) {
b[1] = NOP;
s_write (b, 2);
}
break;
}
}