mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
parent
1cd8830de2
commit
16d8564a2c
@ -216,6 +216,13 @@ main(int argc, char **argv)
|
||||
int use_ssl = 0;
|
||||
struct evconnlistener *listener;
|
||||
|
||||
#ifdef _WIN32
|
||||
WORD wVersionRequested;
|
||||
WSADATA wsaData;
|
||||
wVersionRequested = MAKEWORD(2, 2);
|
||||
(void) WSAStartup(wVersionRequested, &wsaData);
|
||||
#endif
|
||||
|
||||
if (argc < 3)
|
||||
syntax();
|
||||
|
||||
@ -290,5 +297,9 @@ main(int argc, char **argv)
|
||||
evconnlistener_free(listener);
|
||||
event_base_free(base);
|
||||
|
||||
#ifdef _WIN32
|
||||
WSACleanup();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user