Documentation ¶
Index ¶
- type Message
- type Packet
- type PacketHandler
- type ProtoMessage
- func (g *ProtoMessage) GetAppID() uint32
- func (g *ProtoMessage) GetMsgType() uint32
- func (g *ProtoMessage) GetSourceJobID() protocol.JobID
- func (g *ProtoMessage) GetTargetJobID() protocol.JobID
- func (g *ProtoMessage) IsProto() bool
- func (g *ProtoMessage) Serialize(w io.Writer) error
- func (g *ProtoMessage) SetSourceJobID(job protocol.JobID)
- func (g *ProtoMessage) SetTargetJobID(job protocol.JobID)
- type StructMessage
- func (g *StructMessage) GetAppID() uint32
- func (g *StructMessage) GetMsgType() uint32
- func (g *StructMessage) GetSourceJobID() protocol.JobID
- func (g *StructMessage) GetTargetJobID() protocol.JobID
- func (g *StructMessage) IsProto() bool
- func (g *StructMessage) Serialize(w io.Writer) error
- func (g *StructMessage) SetSourceJobID(job protocol.JobID)
- func (g *StructMessage) SetTargetJobID(job protocol.JobID)
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.
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) 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) SetSourceJobID ¶
func (g *StructMessage) SetSourceJobID(job protocol.JobID)
func (*StructMessage) SetTargetJobID ¶
func (g *StructMessage) SetTargetJobID(job protocol.JobID)
Click to show internal directories.
Click to hide internal directories.