Documentation ¶
Index ¶
- Variables
- func AddDirectConn(to uint64, host string, ent string, name string, delay uint64, mask uint64, ...)
- func DelConn(wsip uint64)
- func Forward(to uint64, ip *ip64.Ip64) ([]byte, error)
- func InitEntry(nps string, ent string, hostname string, mask uint64)
- func InitLink(url string, adviceip uint64, isfirst bool) (uint64, int64, error)
- func ListenAccess(port uint16) error
- func LoadNodes(nodesfile string) error
- func NotifyChange(n *nodes.Nodes)
- func Register() error
- func SaveNodes(nodesfile string) error
- func SaveNodesBack() error
- func Send(to uint64, data *[]byte, proto uint16, srcport uint16, destport uint16) ([]byte, error)
- func SendHello(to uint64, conn *websocket.Conn) ([]byte, error)
- func SendNewNodes(newnodes *nodes.Nodes)
- func UpgradeLink(w http.ResponseWriter, r *http.Request, adviceip uint64) (uint64, int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Mywsip uint64
)
View Source
var (
NodesList *nodes.Nodes
)
Functions ¶
func AddDirectConn ¶
func ListenAccess ¶
func SaveNodesBack ¶
func SaveNodesBack() error
func SendNewNodes ¶
func UpgradeLink ¶
UpgradeLink 直接从 http 请求升级连接
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.