Documentation
¶
Overview ¶
Package fragmentbuffer reassembles fragmented DTLS handshake messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FragmentBuffer ¶
type FragmentBuffer struct {
// contains filtered or unexported fields
}
FragmentBuffer stores and reassembles fragmented DTLS handshake messages.
func (*FragmentBuffer) AdvanceTo ¶
func (f *FragmentBuffer) AdvanceTo(messageSequence uint16)
AdvanceTo discards fragments for message sequences before messageSequence.
func (*FragmentBuffer) Pop ¶
func (f *FragmentBuffer) Pop() (content []byte, epoch uint64)
Pop returns the next complete handshake message and its record epoch.
func (*FragmentBuffer) Push ¶
func (f *FragmentBuffer) Push(epoch uint64, content []byte) (PushResult, error)
Push validates and adds handshake fragments from content to the buffer. content starts with a handshake header.
type PushResult ¶
type PushResult struct {
IsRetransmit bool
// IsRetransmitStart reports an old message's offset-zero fragment.
IsRetransmitStart bool
}
PushResult identifies retransmitted messages among the received fragments.
Click to show internal directories.
Click to hide internal directories.