package
0.0.73
Repository: https://github.com/openiothub/utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

GetDialIpPort 获取一个随机UDP Dial的内部ip,端口,外部ip端口.
GetNewListener 把旧的Listener关闭创建一个新的Listener返回,本地地址相同.
GetP2PListener 获取一个随机UDP Listen的内部ip,端口,外部ip端口.
SendPackToPeerByRemoteNetInfo client通过指定listener发送数据到explorer指定的p2p请求地址.
SendPackToPeerByReqNewP2PCtrlAsClient client通过指定listener发送数据到explorer指定的p2p请求地址.
SendPackToPeerByReqNewP2PCtrlAsServer client通过指定listener发送数据到explorer指定的p2p请求地址.
SendPackToPeerByUDPAddr client通过指定listener发送数据到explorer指定的p2p请求地址.