From d1c0a067300b7d1a78d5e431092f56c73a92b36c Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 30 Jul 2021 14:36:04 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 1 + business/jxstore/event/event_tcp_utils.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 6043c3ce9..43c74bef9 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -16,6 +16,7 @@ import ( "time" ) +//入口 func ListenTcp() { t := NewTcpClient() l, err := net.Listen("tcp", ":8000") diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index c0921e7af..ba7d6652a 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -113,8 +113,8 @@ type PrintInfo struct { //连接的客户端,吧每个客户端都放进来 type TcpClient struct { - Clients map[string]*PrintInfo - CallBackMap map[string]chan string + Clients map[string]*PrintInfo //放tcp连接的,printNo 为key + CallBackMap map[string]chan string //放打印信息回调信息的,printNo为key *sync.RWMutex }