source: Daodan/MSVC/Flatline_Win32.c@ 910

Last change on this file since 910 was 587, checked in by gumby, 14 years ago
File size: 446 bytes
RevLine 
[567]1#include "Flatline.h"
[587]2bool WSAStarted = 0;
[567]3bool NetPlatform_Initalize()
4{
5 WSADATA wsaData;
[587]6 if(!WSAStarted)
[567]7 {
[587]8 if (WSAStartup(MAKEWORD(2, 2), &wsaData))
9 {
10 DDrConsole_PrintF("WSA initalization failed");
11 return false;
12 }
13 DDrConsole_PrintF("net started using WSA version %d.%d", LOBYTE(wsaData.wVersion), HIBYTE(wsaData.wVersion));
[567]14 }
15 return true;
16}
17
18bool NetPlatform_Shutdown()
19{
20 WSACleanup();
21 return true;
22}
Note: See TracBrowser for help on using the repository browser.