Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Socket-related cleanups
Improve error handling on Windows and reduce the size of the `Address` class
- Loading branch information
Showing
with
113 additions
and 155 deletions.
- +0 −1 src/client/game.cpp
- +2 −0 src/filesys.cpp
- +44 −75 src/network/address.cpp
- +19 −16 src/network/address.h
- +37 −37 src/network/socket.cpp
- +0 −14 src/network/socket.h
- +3 −2 src/server.cpp
- +8 −10 src/unittest/test_socket.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -41,7 +41,9 @@ namespace fs | ||
* Windows * | ||
***********/ | ||
|
||
#ifndef _WIN32_WINNT | ||
#define _WIN32_WINNT 0x0501 | ||
#endif | ||
#include <windows.h> | ||
#include <shlwapi.h> | ||
#include <io.h> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.