Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Magic number chosen to represent unknown protocols PROTOCOL_UNKNOWN uint16 = 0xabcd // Handshake protocol ID PROTOCOL_HANDSHAKE = 0 )
View Source
const ( SEGMENT_PROTOCOL_ID_RESPONSE_FLAG = 0x8000 SEGMENT_MAX_PAYLOAD_LENGTH = 65535 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Muxer ¶
type Muxer struct { ErrorChan chan error // contains filtered or unexported fields }
func (*Muxer) RegisterProtocol ¶
type Segment ¶ added in v0.5.0
type Segment struct { SegmentHeader Payload []byte }
type SegmentHeader ¶ added in v0.5.0
func (*SegmentHeader) GetProtocolId ¶ added in v0.5.0
func (s *SegmentHeader) GetProtocolId() uint16
func (*SegmentHeader) IsRequest ¶ added in v0.5.0
func (s *SegmentHeader) IsRequest() bool
func (*SegmentHeader) IsResponse ¶ added in v0.5.0
func (s *SegmentHeader) IsResponse() bool
Click to show internal directories.
Click to hide internal directories.