frob_socket(sock);
if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) < 0) {
int e = errno;
+#ifdef _WIN32
+ e = WSAGetLastError();
+#endif
if (! EVUTIL_ERR_CONNECT_RETRIABLE(e)) {
evutil_closesocket(sock);
return -1;
double throughput;
resource = "/ref";
+#ifdef _WIN32
+ WSADATA WSAData;
+ WSAStartup(0x101, &WSAData);
+#endif
+
setvbuf(stdout, NULL, _IONBF, 0);
base = event_base_new();
(double)(usec/1000) / total_n_handled,
(I64_TYP)total_n_bytes, n_errors);
+#ifdef _WIN32
+ WSACleanup();
+#endif
+
return 0;
}