MCPcopy
hub / github.com/aceld/zinx / business

Function business

examples/zinx_logger/client/client.go:14–26  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

12)
13
14func business(conn ziface.IConnection) {
15
16 for {
17 err := conn.SendMsg(1, []byte("Ping...[FromClient]"))
18 if err != nil {
19 fmt.Println(err)
20 zlog.Error(err)
21 break
22 }
23
24 time.Sleep(1 * time.Second)
25 }
26}
27
28func DoClientConnectedBegin(conn ziface.IConnection) {
29 zlog.Debug("DoConnectionBegin is Called ... ")

Callers 1

DoClientConnectedBeginFunction · 0.70

Calls 2

ErrorFunction · 0.92
SendMsgMethod · 0.65

Tested by

no test coverage detected