From 213c00f5146d9e25b0fd7ab09860185dc4eaabbf Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期三, 14 十月 2020 11:59:11 +0800
Subject: [PATCH] update
---
src/socket/net_mod_socket.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/socket/net_mod_socket.h b/src/socket/net_mod_socket.h
index 4807a69..acc6a5d 100644
--- a/src/socket/net_mod_socket.h
+++ b/src/socket/net_mod_socket.h
@@ -47,7 +47,7 @@
class NetModSocket {
friend class NetModServerSocket;
private:
- static std::map<std::string, rio_t *> connectionMap;
+ static std::map<std::string, int> connectionMap;
ShmModSocket shmModSocket;
@@ -57,6 +57,9 @@
static void * encode_response_head(net_mod_response_head_t & response);
static net_mod_response_head_t decode_response_head(void *_headbs);
+ int connect(const char *host, int port);
+ void remove_connect(const char *host, int port);
+
public:
NetModSocket();
--
Gitblit v1.8.0