Example #1
0
func PKT_MSG(reader *packet.Packet) (tbl MSG, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_data, err = reader.ReadBytes()
	checkErr(err)
	return
}
Example #2
0
func PKT_ADD_EVENT(reader *packet.Packet) (tbl ADD_EVENT, err error) {
	tbl.F_type, err = reader.ReadS16()
	checkErr(err)

	tbl.F_user_id, err = reader.ReadS32()
	checkErr(err)

	tbl.F_timeout, err = reader.ReadS64()
	checkErr(err)

	tbl.F_params, err = reader.ReadBytes()
	checkErr(err)

	return
}
Example #3
0
func PKT_FORWARDIPC(reader *packet.Packet) (tbl FORWARDIPC, err error) {
	tbl.F_IPC, err = reader.ReadBytes()
	checkErr(err)

	return
}
Example #4
0
func PKT_ADD_REQ(reader *packet.Packet) (tbl ADD_REQ, err error) {
	tbl.F_data, err = reader.ReadBytes()
	checkErr(err)

	return
}