#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
#include <winsock.h>
+#endif
+#endif
#include "putty.h"
}
static void c_write (char *buf, int len) {
- while (len--)
- c_write1(*buf++);
+ from_backend(0, buf, len);
}
/*
default: return "WSAAsyncSelect(): unknown error";
}
+ /*
+ * We have no pre-session phase.
+ */
+ begin_session();
+
return NULL;
}
raw_size,
raw_special,
raw_socket,
- raw_sendok
+ raw_sendok,
+ 1
};