Documentation ¶
Index ¶
- Variables
- type NatHoleClientCfg
- type NatHoleController
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var NatHoleTimeout int64 = 10
Timeout seconds.
Functions ¶
This section is empty.
Types ¶
type NatHoleClientCfg ¶
type NatHoleController ¶
type NatHoleController struct {
// contains filtered or unexported fields
}
func NewNatHoleController ¶
func NewNatHoleController(udpBindAddr string) (nc *NatHoleController, err error)
func (*NatHoleController) CloseClient ¶
func (nc *NatHoleController) CloseClient(name string)
func (*NatHoleController) GenNatHoleResponse ¶
func (nc *NatHoleController) GenNatHoleResponse(session *NatHoleSession, errInfo string) []byte
func (*NatHoleController) GenSid ¶
func (nc *NatHoleController) GenSid() string
func (*NatHoleController) HandleClient ¶
func (nc *NatHoleController) HandleClient(m *msg.NatHoleClient, raddr *net.UDPAddr)
func (*NatHoleController) HandleVisitor ¶
func (nc *NatHoleController) HandleVisitor(m *msg.NatHoleVisitor, raddr *net.UDPAddr)
func (*NatHoleController) ListenClient ¶
func (nc *NatHoleController) ListenClient(name string, sk string) (sidCh chan string)
func (*NatHoleController) Run ¶
func (nc *NatHoleController) Run()
Click to show internal directories.
Click to hide internal directories.