source:
Daodan/Flatline/src/Flatline_Win32.c@
788
Last change on this file since 788 was 457, checked in by , 15 years ago | |
---|---|
File size: 397 bytes |
Line | |
---|---|
1 | #include "Flatline.h" |
2 | |
3 | bool NetPlatform_Initalize() |
4 | { |
5 | WSADATA wsaData; |
6 | |
7 | if (WSAStartup(MAKEWORD(2, 2), &wsaData)) |
8 | { |
9 | DDrStartupMessage("WSA initalization failed"); |
10 | return false; |
11 | } |
12 | DDrStartupMessage("net started using WSA version %d.%d", LOBYTE(wsaData.wVersion), HIBYTE(wsaData.wVersion)); |
13 | return true; |
14 | } |
15 | |
16 | bool NetPlatform_Shutdown() |
17 | { |
18 | WSACleanup(); |
19 | return true; |
20 | } |
Note:
See TracBrowser
for help on using the repository browser.