Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UDPBroadcaster ¶
type UDPBroadcaster struct {
// contains filtered or unexported fields
}
UDPBroadcaster allow to boradcast and receive broadcasted udp datagrams
func NewUDPBroadcaster ¶
func NewUDPBroadcaster(port int) (*UDPBroadcaster, error)
func (*UDPBroadcaster) Broadcast ¶
func (ub *UDPBroadcaster) Broadcast(databram []byte) error
func (*UDPBroadcaster) Close ¶
func (ub *UDPBroadcaster) Close()
func (*UDPBroadcaster) Read ¶
func (ub *UDPBroadcaster) Read(timeout time.Duration) (*UDPDatagram, error)
type UDPDatagram ¶
Click to show internal directories.
Click to hide internal directories.