Commit Graph

30 Commits

Author SHA1 Message Date
Ayndpa
e66f85576e 优化连接信息显示,调整无效状态的表示方式 2025-11-19 22:22:07 +08:00
Ayndpa
c08a7753f3 实现单实例检查机制,优化窗口激活逻辑,添加跨平台支持 2025-11-19 22:14:15 +08:00
Ayndpa
f045632a78 优化io_context管理,添加工作保护和线程处理,确保资源正确释放 2025-11-19 22:07:48 +08:00
Ayndpa
e8a326be53 重构SteamMessageHandler,移除多余线程,改用定时器实现异步轮询,优化消息接收逻辑 2025-11-19 21:42:51 +08:00
Ayndpa
04ce1a4a03 优化连接中继信息返回逻辑,简化直连状态判断 2025-11-19 21:38:14 +08:00
Ayndpa
e01f08c655 初始化Steam API,优化房间连接逻辑,移除冗余的Rich Presence处理 2025-11-19 21:35:16 +08:00
Ayndpa
94d3445cd2 添加连接类型列到用户列表,优化连接信息显示逻辑 2025-11-19 21:07:48 +08:00
Ayndpa
47943a0052 调整邀请朋友渲染顺序,优化断开连接按钮显示逻辑 2025-11-19 21:02:19 +08:00
Ayndpa
30fe49880f 重构网络管理,优化房间状态显示逻辑,添加断开连接功能,确保资源正确释放 2025-11-19 21:00:35 +08:00
Ayndpa
455539cbf1 优化Steam网络管理,添加主机延迟获取功能,重构房间成员管理逻辑 2025-11-19 20:56:48 +08:00
Ayndpa
cd7a035ba8 重构MultiplexManager和TCPServer,优化客户端管理和连接逻辑,添加异步读取和错误处理 2025-11-19 20:25:25 +08:00
Ayndpa
1991cc9a5d 增强MultiplexManager,添加异步读取功能,管理每个客户端的读取缓冲区 2025-11-19 19:01:00 +08:00
Ayndpa
dc3535f8c2 重构网络管理,移除TCPClient和TCPServer类,整合多路复用功能,优化连接管理和数据传输逻辑 2025-11-19 18:30:52 +08:00
Ayndpa
dc44cf4df1 重构MultiplexManager,使用字符串ID替代uint32_t,优化TCPClient和TCPServer的客户端管理 2025-11-19 18:19:14 +08:00
Ayndpa
2e0febc3a3 重构Steam房间管理回调,添加IO失败处理,优化构造函数格式 2025-11-19 17:48:06 +08:00
Ayndpa
7ace8bbb3c 增强MultiplexManager构造函数,添加io_context、isHost和localPort参数,并在TCPServer中相应更新 2025-11-19 17:12:12 +08:00
Ayndpa
f661b1d369 重构Steam网络管理,整合房间管理功能,添加多路复用支持,优化TCP服务器和消息处理 2025-11-19 16:49:36 +08:00
Ayndpa
0e65ecb8ca 移除手动设置的STUN服务器列表及相关日志输出,简化初始化过程 2025-11-19 16:37:12 +08:00
Ayndpa
b2ad339efd 拆分房间功能和管理到单独文件,并删除control_packets相关代码 2025-11-19 16:08:48 +08:00
Ayndpa
4cee07cb37 增强P2P连接设置,添加详细日志功能并允许公网和私网直连 2025-11-19 15:45:19 +08:00
Ayndpa
8f82182156 移除不必要的连接配置,优化P2P连接设置并添加详细日志功能 2025-11-19 15:24:34 +08:00
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