Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHeader ¶
ParseHeader parses raw header bytes into a user-defined struct, using protobuf unmarshalling if applicable. For protobuf messages, it extracts the msgID from the field named "Msgid". For manual structs, it uses bmux tags, including bmux:"msg_id".
Types ¶
type PacketEnvelope ¶
func ParseEnvelope ¶
func ParseEnvelope(conn net.Conn) (*PacketEnvelope, error)
Click to show internal directories.
Click to hide internal directories.