gc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	protocol.Serializer

	IsProto() bool
	GetAppID() uint32
	GetMsgType() uint32
	GetTargetJobID() protocol.JobID
	SetTargetJobID(protocol.JobID)
	GetSourceJobID() protocol.JobID
	SetSourceJobID(protocol.JobID)
}

Message represents an outgoing message to the Game Coordinator.

type Packet

type Packet struct {
	AppID       uint32
	MsgType     uint32
	IsProto     bool
	GCName      string
	Body        []byte
	TargetJobID protocol.JobID
}

An incoming, partially unread message from the Game Coordinator.

func NewPacket

func NewPacket(wrapper *pb.CMsgGCClient) (*Packet, error)

func (*Packet) ReadMsg

func (g *Packet) ReadMsg(body protocol.StructMessageBody) error

func (*Packet) ReadProtoMsg

func (g *Packet) ReadProtoMsg(body proto.Message) error

type PacketHandler

type PacketHandler interface {
	HandleGCPacket(*Packet)
}

type ProtoMessage

type ProtoMessage struct {
	AppID  uint32
	Header *steamlang.MsgGCHdrProtoBuf
	Body   proto.Message
}

func NewProtoMessage

func NewProtoMessage(appID, msgType uint32, body proto.Message) *ProtoMessage

func (*ProtoMessage) GetAppID

func (g *ProtoMessage) GetAppID() uint32

func (*ProtoMessage) GetMsgType

func (g *ProtoMessage) GetMsgType() uint32

func (*ProtoMessage) GetSourceJobID

func (g *ProtoMessage) GetSourceJobID() protocol.JobID

func (*ProtoMessage) GetTargetJobID

func (g *ProtoMessage) GetTargetJobID() protocol.JobID

func (*ProtoMessage) IsProto

func (g *ProtoMessage) IsProto() bool

func (*ProtoMessage) Serialize

func (g *ProtoMessage) Serialize(w io.Writer) error

func (*ProtoMessage) SetSourceJobID

func (g *ProtoMessage) SetSourceJobID(job protocol.JobID)

func (*ProtoMessage) SetTargetJobID

func (g *ProtoMessage) SetTargetJobID(job protocol.JobID)

type StructMessage

type StructMessage struct {
	AppID   uint32
	MsgType uint32
	Header  *steamlang.MsgGCHdr
	Body    protocol.Serializer
}

func NewStructMessage

func NewStructMessage(appID, msgType uint32, body protocol.Serializer) *StructMessage

func (*StructMessage) GetAppID

func (g *StructMessage) GetAppID() uint32

func (*StructMessage) GetMsgType

func (g *StructMessage) GetMsgType() uint32

func (*StructMessage) GetSourceJobID

func (g *StructMessage) GetSourceJobID() protocol.JobID

func (*StructMessage) GetTargetJobID

func (g *StructMessage) GetTargetJobID() protocol.JobID

func (*StructMessage) IsProto

func (g *StructMessage) IsProto() bool

func (*StructMessage) Serialize

func (g *StructMessage) Serialize(w io.Writer) error

func (*StructMessage) SetSourceJobID

func (g *StructMessage) SetSourceJobID(job protocol.JobID)

func (*StructMessage) SetTargetJobID

func (g *StructMessage) SetTargetJobID(job protocol.JobID)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL