Commit Graph

10 Commits

Author SHA1 Message Date
Your Name a5cbfbc916 Fix critical Linux compilation errors for LoginServer
Major fixes implemented:
1. Added missing system headers (sys/time.h, sys/ioctl.h) for gettimeofday and ioctl
2. Resolved ODBC type conflicts by conditionally defining TCHAR and using compatible DWORD type
3. Added comprehensive Windows socket function mappings for Linux (WSAStartup, WSACleanup, etc.)
4. Fixed ListenSocket constructor to match expected interface with IsOpen() method
5. Fixed string_format parameter binding issue in LoginSession.cpp
6. Added platform-specific implementations in SocketMgr.cpp for Linux compatibility
7. Enhanced SocketOpsLinux.cpp with missing socket operations

Key improvements:
- Cross-platform socket initialization and cleanup
- Linux epoll-based socket management
- Compatible type definitions that work with both Linux and Windows ODBC
- Proper handling of temporary string objects in function calls
- Comprehensive error handling for missing Windows APIs on Linux

This should resolve the major compilation errors while maintaining Windows compatibility.
2025-08-29 22:25:15 +03:00
Your Name e5a1ca68e7 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.
2025-08-29 22:10:58 +03:00
Your Name 59b331458c Add Linux compatibility for LoginServer
- Updated main.cpp with platform-specific code for Windows/Linux
- Modified stdafx.h to include Linux headers and definitions
- Updated signal_handler.cpp for cross-platform signal handling
- Added Linux-compatible types and macros
- Created CMakeLists.txt for Linux build system
- Added build.sh script for automated building
- Added loginserver.sh script for server management
- Created comprehensive README_LINUX.md with deployment instructions
- All changes maintain Windows compatibility using preprocessor directives
2025-08-29 21:52:53 +03:00
Your Name 26a4c99c5c readme added 2025-08-29 21:46:41 +03:00
Levent FERRAH 9fd7a9283c Readme eklendi 2025-08-29 21:31:02 +03:00
Levent FERRAH 1b9b6c506d merged 2025-08-20 02:21:32 +03:00
Levent FERRAH c712e7662c push Deneme 2025-08-20 02:15:39 +03:00
Levent FERRAH 1916613295 Initial commit 2025-08-20 01:45:08 +03:00
Levent FERRAH bcbb5db79f ilk commit 2025-08-19 15:55:41 +03:00
Levent FERRAH 385548afa6 Initial commit 2025-08-19 15:48:33 +03:00