Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeP2PSessionAsClient ¶
func MakeP2PSessionAsClient(stream net.Conn, ctrlmMsg *models.ReqNewP2PCtrlAsClient, token *models.TokenClaims) (*yamux.Session, error)
作为客户端主动去连接内网client的方式创建穿透连接
func MakeP2PSessionAsServer ¶ added in v0.0.10
func MakeP2PSessionAsServer(stream net.Conn, ctrlmMsg *models.ReqNewP2PCtrlAsServer, token *models.TokenClaims) (*yamux.Session, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.