From 30f434d78b58e3a4198cf5ba5a9e5a0ce1cd5292 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 07 七月 2022 14:32:36 +0800 Subject: [PATCH] 'bug修复' --- app/SocketManager.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/app/SocketManager.h b/app/SocketManager.h index 9e7c487..a92a708 100644 --- a/app/SocketManager.h +++ b/app/SocketManager.h @@ -26,7 +26,7 @@ static void runSocketServer(void* context); static void processMsg(SOCKET client, void* context); const int PORT = 9001; - const char* ADDR = "127.0.0.1"; + const char *ADDR = "127.0.0.1"; sockaddr_in clientaddr; SOCKET getClient(int p); //添加客户端 @@ -43,6 +43,8 @@ int getClientsNum(); + void resetClient(int p); + //连接所有 int Connect(); int Connect(int p); @@ -53,6 +55,8 @@ BOOL sendMsg(int, const char *); + static BOOL sendMsg(const char*); + }; -- Gitblit v1.8.0