tzaccess

package module
v0.0.0-...-f7b35b4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 5 Imported by: 1

README

tzaccess

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigCoreParam

func ConfigCoreParam(ia uint64, ip string, port int)

ConfigCoreParam 配置核心网参数

func GetParentAddr

func GetParentAddr() *net.UDPAddr

GetParentAddr 读取父节点地址.如果父节点不存在则返回nil

func IsConn

func IsConn() bool

IsConn 是否连接核心网

func Load

func Load(ia uint64, pwd string, send SendFunc, isAllowSend IsAllowSendFunc)

func Receive

func Receive(data []uint8, addr *net.UDPAddr)

Receive 用户接收到数据时需回调本函数

Types

type IsAllowSendFunc

type IsAllowSendFunc func() bool

IsAllowSendFunc 是否允许发送

type SendFunc

type SendFunc func(data []uint8, addr *net.UDPAddr)

SendFunc 发送函数.addr:目标地址

Jump to

Keyboard shortcuts

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