示例#1
0
文件: stream.go 项目: Yuhang/xserver
func (h *streamHandler) onProxySend(callback float64, r *amf0.Reader, reliable bool) error {
	rpc.Call(h.session.xid, h.session.raddr, 0, r.Bytes(), reliable)
	return nil
}
示例#2
0
文件: conn.go 项目: Yuhang/xserver
func (h *connHandler) onRequest(callback float64, r *amf0.Reader) error {
	rpc.Call(h.session.xid, h.session.raddr, callback, r.Bytes(), true)
	return nil
}