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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址