Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UDPBroadcast ¶
type UDPBroadcast struct { sync.RWMutex TimeoutInterval time.Duration ReceiveHandler func(client interface{}, buf []byte) AllowDynamicNewPeers bool // contains filtered or unexported fields }
func NewUDPBroadcast ¶
func NewUDPBroadcast() (*UDPBroadcast, error)
func (*UDPBroadcast) ListenAndServe ¶
func (u *UDPBroadcast) ListenAndServe(addr string) error
func (*UDPBroadcast) Send ¶
func (u *UDPBroadcast) Send(skip interface{}, buf []byte) error
func (*UDPBroadcast) Shutdown ¶
func (u *UDPBroadcast) Shutdown() error
Click to show internal directories.
Click to hide internal directories.