Documentation
¶
Index ¶
- func Network(tp *network.TransportProperties) network.Network
- func NewLuaSelector(script string) (rpc.ServerSelector, error)
- type LuaSelector
- func (s *LuaSelector) Close(raddr pan.UDPAddr) error
- func (s *LuaSelector) Initialize(local, remote pan.UDPAddr, paths []*pan.Path)
- func (s *LuaSelector) Path(raddr pan.UDPAddr) *pan.Path
- func (s *LuaSelector) PathDown(raddr pan.UDPAddr, fp pan.PathFingerprint, pi pan.PathInterface)
- func (s *LuaSelector) Refresh(remote pan.UDPAddr, paths []*pan.Path)
- type QUICDialer
- type QUICListener
- type UDPDialer
- type UDPListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLuaSelector ¶
func NewLuaSelector(script string) (rpc.ServerSelector, error)
func NewLuaSelector(script string) (*LuaSelector, error) {
Types ¶
type LuaSelector ¶
type LuaSelector struct {
L *lua.LState
// contains filtered or unexported fields
}
func (*LuaSelector) Initialize ¶
func (s *LuaSelector) Initialize(local, remote pan.UDPAddr, paths []*pan.Path)
func (*LuaSelector) PathDown ¶
func (s *LuaSelector) PathDown(raddr pan.UDPAddr, fp pan.PathFingerprint, pi pan.PathInterface)
type QUICDialer ¶
type QUICDialer struct {
// contains filtered or unexported fields
}
func NewQUICDialer ¶
func NewQUICDialer(address string, tp *network.TransportProperties) (*QUICDialer, error)
func (*QUICDialer) Dial ¶
func (d *QUICDialer) Dial() (network.Connection, error)
type QUICListener ¶
type QUICListener struct {
// contains filtered or unexported fields
}
func NewQUICListener ¶
func NewQUICListener(address string, tp *network.TransportProperties) (*QUICListener, error)
func (*QUICListener) Listen ¶
func (l *QUICListener) Listen() (network.Connection, error)
func (*QUICListener) Stop ¶
func (l *QUICListener) Stop() error
type UDPDialer ¶
type UDPDialer struct {
// contains filtered or unexported fields
}
func NewUDPDialer ¶
type UDPListener ¶
type UDPListener struct {
// contains filtered or unexported fields
}
func NewUDPListener ¶
func NewUDPListener(address string) (*UDPListener, error)
func (*UDPListener) Listen ¶
func (l *UDPListener) Listen() (network.Connection, error)
func (*UDPListener) Stop ¶
func (l *UDPListener) Stop() error
Click to show internal directories.
Click to hide internal directories.