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.

14 lines
371 B

  1. package ziface
  2. /*
  3. 将请求的一个消息封装到message中定义抽象层接口
  4. */
  5. type IMessage interface {
  6. GetDataLen() uint32 //获取消息数据段长度
  7. GetMsgId() uint32 //获取消息ID
  8. GetData() []byte //获取消息内容
  9. SetMsgId(uint32) //设计消息ID
  10. SetData([]byte) //设计消息内容
  11. SetDataLen(uint32) //设置消息数据段长度
  12. }