Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver 在绑定的地址上接收 UDP 数据报并将其分发到 handler。 支持通过 ctx 取消,ctx 取消或发生错误时返回。
func NewReceiver ¶
NewReceiver 将 UDP 监听器绑定到 localAddr(例如 ":9000" 或 "127.0.0.1:9000")。
Click to show internal directories.
Click to hide internal directories.