Documentation ¶
Index ¶
Constants ¶
View Source
const ( MessageTypeAnnouncement = MessageType(iota) MessageTypeDeletion )
View Source
const (
SDPPayloadType = "application/sdp"
)
View Source
const (
Version1 = Version(1)
)
Variables ¶
View Source
var ErrAuthenticationDataTooLong = errors.New("authentication data too long")
View Source
var ErrPacketInvalidIntegrity = errors.New("packet integrity error")
View Source
var ErrPacketTooShort = errors.New("packet too short")
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) ReadPacketRaw ¶
type MessageType ¶
type MessageType int
type Packet ¶
type Packet struct { Type MessageType IDHash uint16 Origin net.IP Encrypted bool Compressed bool PayloadType string AuthenticationData []byte Payload []byte }
func DecodePacket ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func (*Sender) AnnouncePeriodically ¶
Click to show internal directories.
Click to hide internal directories.