udpbroadcast

package
v0.0.0-...-cb352a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastCtrl

type BroadcastCtrl struct {
	Handler func(ctrl *BroadcastCtrl, pkt *BroadcastMsg, addr net.Addr)
	// contains filtered or unexported fields
}

func NewBroadcastCtrl

func NewBroadcastCtrl(bindPort int, remotePort int) *BroadcastCtrl

func (*BroadcastCtrl) SendRequest

func (me *BroadcastCtrl) SendRequest(action string, data interface{}, wait bool) *BroadcastMsg

func (*BroadcastCtrl) SendResponse

func (me *BroadcastCtrl) SendResponse(msg *BroadcastMsg, data interface{}) error

func (*BroadcastCtrl) Start

func (me *BroadcastCtrl) Start() error

type BroadcastMsg

type BroadcastMsg struct {
	Action   string
	Response int
	FromGUID string
	ToGUID   string
	Session  string
	Seq      int64
	Time     int64
	Argument interface{}
}

type WaitChanInfo

type WaitChanInfo struct {
	Session string
	Time    int64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL