Versions in this module Expand all Collapse all v0 v0.23.1 Jan 16, 2019 v0.23.0 Jan 15, 2019 Changes in this version + var NatHoleTimeout int64 = 10 + type NatHoleClientCfg struct + Name string + SidCh chan string + Sk string + type NatHoleController struct + func NewNatHoleController(udpBindAddr string) (nc *NatHoleController, err error) + func (nc *NatHoleController) CloseClient(name string) + func (nc *NatHoleController) GenNatHoleResponse(session *NatHoleSession, errInfo string) []byte + func (nc *NatHoleController) GenSid() string + func (nc *NatHoleController) HandleClient(m *msg.NatHoleClient, raddr *net.UDPAddr) + func (nc *NatHoleController) HandleVisitor(m *msg.NatHoleVisitor, raddr *net.UDPAddr) + func (nc *NatHoleController) ListenClient(name string, sk string) (sidCh chan string) + func (nc *NatHoleController) Run() + type NatHoleSession struct + ClientAddr *net.UDPAddr + NotifyCh chan struct{} + Sid string + VisitorAddr *net.UDPAddr