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

Function DoConnectionBegin

znet/server_test.go:125–131  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

123}
124
125func DoConnectionBegin(conn ziface.IConnection) {
126 fmt.Println("DoConnectionBegin is Called ... ")
127 err := conn.SendMsg(2, []byte("DoConnection BEGIN..."))
128 if err != nil {
129 fmt.Println(err)
130 }
131}
132
133func DoConnectionLost(conn ziface.IConnection) {
134 fmt.Println("DoConnectionLost is Called ... ")

Callers

nothing calls this directly

Calls 1

SendMsgMethod · 0.65

Tested by

no test coverage detected