From c1e39e20ca42b21eeac8b5068fa1f921bf9a070f Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 23 六月 2021 19:43:29 +0800
Subject: [PATCH] refactor, start tcp pub/sub.

---
 box/tcp_proxy.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/box/tcp_proxy.cpp b/box/tcp_proxy.cpp
index b4ec497..803874d 100644
--- a/box/tcp_proxy.cpp
+++ b/box/tcp_proxy.cpp
@@ -31,3 +31,8 @@
 		return false;
 	}
 }
+
+bool TcpProxy::Publish(const std::string &ip, int port, std::string &&content)
+{
+	return Request(ip, port, std::move(content), ReplyCB());
+}
\ No newline at end of file

--
Gitblit v1.8.0