Fix Linux compilation errors for LoginServer

Major fixes for Linux compatibility:
- Added comprehensive Linux socket type definitions to stdafx.h
- Created SocketOpsLinux.cpp with Linux socket operations implementation
- Added ListenSocketLinux.h with epoll-based socket listening
- Updated Network.h to conditionally include platform-specific headers
- Modified SocketDefines.h to support both Windows OVERLAPPED and Linux equivalents
- Updated CMakeLists.txt to use correct platform-specific source files
- Added additional socket constants and error code mappings for Linux

These changes address the compilation errors related to:
- Missing SOCKET, HANDLE, OVERLAPPED type definitions
- Windows-specific socket functions (WSASocket, closesocket, etc.)
- Platform-specific listen socket implementations
- Socket operations and error handling

The LoginServer should now compile successfully on Linux while maintaining Windows compatibility.
This commit is contained in:
Your Name
2025-08-29 22:10:58 +03:00
parent 59b331458c
commit e5a1ca68e7
7 changed files with 3834 additions and 4 deletions
+4
View File
@@ -68,6 +68,10 @@ if(WIN32)
../shared/SocketWin32.cpp
../shared/SocketOpsWin32.cpp
)
else()
list(APPEND SHARED_SOURCES
../shared/SocketOpsLinux.cpp
)
endif()
# Create executable