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

Method PostHandle

znet/server_test.go:103–109  ·  view source on GitHub ↗

Test PostHandle

(request ziface.IRequest)

Source from the content-addressed store, hash-verified

101
102// Test PostHandle
103func (this *PingRouter) PostHandle(request ziface.IRequest) {
104 fmt.Println("Call Router PostHandle")
105 err := request.GetConnection().SendMsg(1, []byte("After ping .....\n"))
106 if err != nil {
107 fmt.Println("Post SendMsg err: ", err)
108 }
109}
110
111type HelloRouter struct {
112 BaseRouter

Callers

nothing calls this directly

Calls 2

SendMsgMethod · 0.65
GetConnectionMethod · 0.65

Tested by

no test coverage detected