Commit Graph

9 Commits

Author SHA1 Message Date
Ayndpa
3896a91433 优化网络消息处理的睡眠时间,减少CPU占用;扩展连接配置以支持更多参数 2025-11-19 13:47:01 +08:00
Ayndpa
f2fde172e1 添加消息处理程序依赖项设置和启动/停止功能,以增强网络消息处理能力 2025-11-18 21:46:31 +08:00
Ayndpa
d1d26ad0f0 更新Steam网络信息,添加用户信息更新功能以获取延迟和中继状态 2025-11-18 21:45:42 +08:00
Ayndpa
e7a09f9d92 增强Steam好友邀请功能,添加连接字符串支持并改进错误处理;实现游戏大厅加入请求的回调 2025-11-18 21:37:01 +08:00
Ayndpa
af181bb133 Refactor Steam Networking Components
- Removed SteamMessageHandler class and its implementation files.
- Integrated control packet handling directly into the SteamMessageHandler.
- Updated TCPClient and TCPServer classes to improve connection management and error handling.
- Added SteamNetworkingManager class to manage Steam networking, including lobby creation and connection handling.
- Implemented callbacks for Steam Friends and Matchmaking to handle lobby events.
- Enhanced message forwarding logic between TCP clients and Steam connections.
- Introduced control packet handling for ping responses.
- Improved thread safety with mutexes for shared resources.
2025-11-18 21:03:01 +08:00
Ayndpa
676d39d6a2 添加连接管理的互斥锁,增强多线程环境下的连接安全性;更新TCPClient以支持断开回调 2025-11-18 19:20:36 +08:00
Ayndpa
b308a644ff 重构代码,删除不必要的文件,添加控制数据包处理和Steam消息处理功能 2025-11-18 19:05:50 +08:00
Ayndpa
3b85a5f3bb 增强P2P连接的可靠性,添加用户信息管理和连接重试机制 2025-11-18 18:28:52 +08:00
Ayndpa
0f76252c16 Add initial implementation of ConnectTool with Dear ImGui and Steam Networking
- Created project files for ConnectTool including filters and user settings.
- Added README.md with setup instructions and prerequisites for building the project.
- Implemented imgui_hello.cpp as a simple Dear ImGui application using GLFW and OpenGL.
- Developed online_game_tool.cpp for hosting and joining game rooms using Steam Networking.
- Created p2p_chat.cpp for a peer-to-peer chat application utilizing Steam Networking.
- Implemented steam_friends.cpp to display the user's Steam friends list.
- Added TCP client and server classes for handling network communication.
- Integrated TCP server and client functionality into online_game_tool for real-time data exchange.
2025-11-17 20:41:03 +08:00