MCPcopy Index your code
hub / github.com/aceld/zinx / Handle

Method Handle

znet/server_test.go:115–123  ·  view source on GitHub ↗
(request ziface.IRequest)

Source from the content-addressed store, hash-verified

113}
114
115func (this *HelloRouter) Handle(request ziface.IRequest) {
116 fmt.Println("call helloRouter Handle")
117 fmt.Printf("receive from client msgID=%d, data=%s\n", request.GetMsgID(), string(request.GetData()))
118
119 err := request.GetConnection().SendMsg(2, []byte("hello zix hello Router"))
120 if err != nil {
121 fmt.Println(err)
122 }
123}
124
125func DoConnectionBegin(conn ziface.IConnection) {
126 fmt.Println("DoConnectionBegin is Called ... ")

Callers

nothing calls this directly

Calls 4

GetMsgIDMethod · 0.65
GetDataMethod · 0.65
SendMsgMethod · 0.65
GetConnectionMethod · 0.65

Tested by

no test coverage detected