You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
531 B

package znet
import "github.com/aceld/zinx/ziface"
//Request 请求
type Request struct {
conn ziface.IConnection //已经和客户端建立好的 链接
msg ziface.IMessage //客户端请求的数据
}
//GetConnection 获取请求连接信息
func (r *Request) GetConnection() ziface.IConnection {
return r.conn
}
//GetData 获取请求消息的数据
func (r *Request) GetData() []byte {
return r.msg.GetData()
}
//GetMsgID 获取请求的消息的ID
func (r *Request) GetMsgID() uint32 {
return r.msg.GetMsgID()
}