示例#1
0
func init() {
	events.AddChain("RecvFromClient", InvokeSendRecv)
	events.AddChain("SendToClient", InvokeSendRecv)

	events.AddHandler("SendToClient", "client", events.PrioLast, sendToClient)
}
示例#2
0
func init() {
	events.AddChain("RecvFromServer", InvokeSendRecv)
	events.AddChain("SendToServer", InvokeSendRecv)

	events.AddHandler("SendToServer", "server", events.PrioLast, sendToServer)
}