X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/8d5de7770cde9b808c276bd86a0214189a8f7578..9d33ebddc777e92a92d57f91a9d7f325d36aa422:/telnet.c?ds=inline diff --git a/telnet.c b/telnet.c index 75435c6f..4fb39c63 100644 --- a/telnet.c +++ b/telnet.c @@ -1,7 +1,13 @@ #include #include #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else #include +#endif +#endif #include "putty.h" @@ -583,6 +589,12 @@ static char *telnet_init (HWND hwnd, char *host, int port, char **realhost) { * Set up SYNCH state. */ in_synch = FALSE; + + /* + * We have no pre-session phase. + */ + begin_session(); + return NULL; } @@ -749,5 +761,6 @@ Backend telnet_backend = { telnet_size, telnet_special, telnet_socket, - telnet_sendok + telnet_sendok, + 23 };