(request ziface.IRequest)
| 113 | } |
| 114 | |
| 115 | func (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 | |
| 125 | func DoConnectionBegin(conn ziface.IConnection) { |
| 126 | fmt.Println("DoConnectionBegin is Called ... ") |
nothing calls this directly
no test coverage detected