暫存
This commit is contained in:
@@ -125,13 +125,17 @@ type PrintInfo struct {
|
||||
StatusTime time.Time
|
||||
}
|
||||
|
||||
type PrintPoolMap struct {
|
||||
*sync.RWMutex
|
||||
PrintObj *TcpClient
|
||||
}
|
||||
|
||||
//连接的客户端,吧每个客户端都放进来
|
||||
type TcpClient struct {
|
||||
Clients map[string]*PrintInfo //放tcp连接的,printNo 为key
|
||||
MsgMap map[string]chan *model.PrintMsg //放打印信息的,printNo为key
|
||||
CallBackMap map[string]chan string //放打印信息回调信息的,printNo为key
|
||||
//TimeoutMap map[string]chan bool //退出channel
|
||||
TimeoutMap map[string]bool //退出channel
|
||||
TimeoutMap map[string]bool //退出channel
|
||||
*sync.RWMutex
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user