Documentation ¶
Index ¶
Constants ¶
View Source
const FragmentSize = 1024 * 512
Variables ¶
View Source
var ( PtypeMap = map[PacketType]string{ PTypeSendHeader: "SendHeader", PtypeSendBody: "SendBody", PtypeEndBody: "EndBody", PtypeReSendBody: "ReSendBody", } )
Functions ¶
func GetRequestId ¶
func GetRequestId() []byte
Types ¶
type Packet ¶
type Packet struct { PType PacketType Offset int32 // current offset Total int32 // total body size Data []byte }
type PacketType ¶
type PacketType = uint8
const ( PTypeSendHeader PacketType = iota PtypeSendBody PacketType = iota PtypeEndBody PacketType = iota PtypeReSendBody PacketType = iota )
Click to show internal directories.
Click to hide internal directories.