| Revision: | 484 |
| Committed: | Fri Dec 11 08:58:07 2009 UTC (15 years, 11 months ago) by gumby |
| Content type: | text/x-csrc |
| File size: | 397 byte(s) |
| Log Message: | ZOMG FLATLINE |
| # | Content |
|---|---|
| 1 | #include "Flatline.h" |
| 2 | |
| 3 | bool NetPlatform_Initalize() |
| 4 | { |
| 5 | WSADATA wsaData; |
| 6 | |
| 7 | if (WSAStartup(MAKEWORD(2, 2), &wsaData)) |
| 8 | { |
| 9 | DDrConsole_PrintF("WSA initalization failed"); |
| 10 | return false; |
| 11 | } |
| 12 | DDrConsole_PrintF("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 | } |