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. |
||
|---|---|---|
| server | ||
| LICENSE | ||
| README.md | ||
README.md
Knight Online
1.0.0
License
MIT License
Copyright (c) 2024 Knight Online
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.