File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11package server
22
33import (
4+ "strconv"
5+
46 "github.com/wendy512/go-iecp5/asdu"
57 "github.com/wendy512/go-iecp5/clog"
68 "github.com/wendy512/go-iecp5/cs104"
7- "strconv"
89)
910
1011// Settings 连接配置
@@ -64,10 +65,10 @@ func (s *Server) Stop() {
6465
6566// SetOnConnectionHandler set on connect handler
6667func (s * Server ) SetOnConnectionHandler (f func (asdu.Connect )) {
67- s .SetOnConnectionHandler (f )
68+ s .cs104Server . SetOnConnectionHandler (f )
6869}
6970
7071// SetConnectionLostHandler set connect lost handler
7172func (s * Server ) SetConnectionLostHandler (f func (asdu.Connect )) {
72- s .SetConnectionLostHandler (f )
73+ s .cs104Server . SetConnectionLostHandler (f )
7374}
You can’t perform that action at this time.
0 commit comments