Documentation ¶
Index ¶
- Constants
- type Block
- func NewBlockFromReader(reader io.Reader) (*Block, error)
- func NewConnectBlock(connectID uint32, blockID uint32, address string) Block
- func NewDataBlocks(connectID uint32, blockID *atomic.Uint32, data []byte) []Block
- func NewDisconnectBlock(connectID uint32, blockID uint32, shutdownType uint8) Block
Constants ¶
View Source
const ( TypeConnect = iota TypeDisconnect TypeData ShutdownRead = iota ShutdownWrite ShutdownBoth HeaderSize = 1 + 4 + 4 + 4 DataSize = 16*1024 - 13 MaxSize = HeaderSize + DataSize )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.