Documentation ¶
Index ¶
- Constants
- type DeviceBox
- func (box *DeviceBox) Close() error
- func (box *DeviceBox) GetAllNetworkSpeedView() tool.NetworkSpeedView
- func (box *DeviceBox) GetNetworkSpeedView() tool.NetworkSpeedView
- func (box *DeviceBox) GetOtherDelayPing(name ...string) ([]tool.OdjPing, error)
- func (box *DeviceBox) GetSubBox(name string) (*SubBox, error)
- func (box *DeviceBox) GetSubBoxByP2P(name string) (*SubBox, error)
- func (box *DeviceBox) GetSubBoxBySubType(name string, subType SubType) (*SubBox, error)
- func (box *DeviceBox) GetSubBoxBySubTypeMix(name string, subTypes []SubType) (*SubBox, []error, error)
- func (box *DeviceBox) GetSubBoxByUP2P(name string) (*SubBox, error)
- func (box *DeviceBox) GetSubBoxFromSid(sid string) (*SubBox, bool)
- func (box *DeviceBox) IsAnonymity() bool
- func (box *DeviceBox) ListenSubBox(fn func(sub *SubBox)) error
- func (box *DeviceBox) ListenSubBoxOnce() (sub *SubBox, err error)
- func (box *DeviceBox) LocalAddr() net.Addr
- func (box *DeviceBox) Name() string
- func (box *DeviceBox) ProxyAddr() net.Addr
- func (box *DeviceBox) Read(b []byte) (int, error)
- func (box *DeviceBox) SetDeadline(timeout time.Duration) bool
- func (box *DeviceBox) SetInfoLog(a ...any)
- func (box *DeviceBox) SetWarnLog(a ...any)
- func (box *DeviceBox) SubNumbers() int
- func (box *DeviceBox) SwitchListenUP2P(r bool)
- func (box *DeviceBox) Wait()
- func (box *DeviceBox) Write(b []byte) (int, error)
- type LinkClient
- func (lc *LinkClient) Close(err error) error
- func (lc *LinkClient) CopyLocalAddr() net.Addr
- func (lc *LinkClient) CopyRemoteAddr() net.Addr
- func (lc *LinkClient) LinkLocalAddr() net.Addr
- func (lc *LinkClient) LinkRemoteAddr() net.Addr
- func (lc *LinkClient) LocalAddr() net.Addr
- func (lc *LinkClient) RemoteAddr() net.Addr
- func (lc *LinkClient) SetCopyDeadline(t time.Time) error
- func (lc *LinkClient) SetCopyReadDeadline(t time.Time) error
- func (lc *LinkClient) SetCopyWriteDeadline(t time.Time) error
- func (lc *LinkClient) SetDeadline(t time.Time) error
- func (lc *LinkClient) SetLinkDeadline(t time.Time) error
- func (lc *LinkClient) SetLinkReadDeadline(t time.Time) error
- func (lc *LinkClient) SetLinkWriteDeadline(t time.Time) error
- func (lc *LinkClient) SetReadDeadline(t time.Time) error
- func (lc *LinkClient) SetWriteDeadline(t time.Time) error
- func (lc *LinkClient) Wait() error
- func (lc *LinkClient) WriteToLinkConn(b []byte) error
- type LinkClientRW
- type LinkConnReq
- type SubBox
- func (sub *SubBox) Close() error
- func (sub *SubBox) GetAllNetworkSpeedView() tool.NetworkSpeedView
- func (sub *SubBox) GetLocalIntranetAddr() net.Addr
- func (sub *SubBox) GetLocalName() string
- func (sub *SubBox) GetLocalPublicAddr() net.Addr
- func (sub *SubBox) GetNetworkSpeedView() tool.NetworkSpeedView
- func (sub *SubBox) GetRawKey() string
- func (sub *SubBox) GetRemoteIntranetAddr() net.Addr
- func (sub *SubBox) GetRemoteName() string
- func (sub *SubBox) GetRemotePublicAddr() net.Addr
- func (sub *SubBox) Id() string
- func (sub *SubBox) LocalAddr() net.Addr
- func (sub *SubBox) NewKey(key string) tool.Key
- func (sub *SubBox) Read(b []byte) (int, error)
- func (sub *SubBox) ReadCMsgCb(fn func(cMsg tool.ConnMsg) (bool, error)) error
- func (sub *SubBox) RemoteAddr() net.Addr
- func (sub *SubBox) SetDeadline(t time.Time) error
- func (sub *SubBox) SetDeadlineDuration(timeout time.Duration) bool
- func (sub *SubBox) SetDebugLog(a ...any)
- func (sub *SubBox) SetInfoLog(a ...any)
- func (sub *SubBox) SetReadDeadline(t time.Time) error
- func (sub *SubBox) SetWarnLog(a ...any)
- func (sub *SubBox) SetWriteDeadline(t time.Time) error
- func (sub *SubBox) Type() string
- func (sub *SubBox) Write(b []byte) (int, error)
- func (sub *SubBox) WriteCMsg(header string, id string, code int, data interface{}) error
- func (sub *SubBox) WriteQueueBytes(b [][]byte) error
- type SubType
Constants ¶
View Source
const ( SubTypeUP2P = SubType("SubTypeUP2P") SubTypeP2P = SubType("SubTypeP2P") SubTypeProxy = SubType("SubTypeProxy") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceBox ¶ added in v1.3.0
type DeviceBox struct {
// contains filtered or unexported fields
}
func LinkProxyServer ¶ added in v1.3.0
func LinkProxyServerFromAnonymity ¶ added in v1.3.8
func LinkProxyServerRaw ¶ added in v1.3.8
func (*DeviceBox) GetAllNetworkSpeedView ¶ added in v1.3.0
func (box *DeviceBox) GetAllNetworkSpeedView() tool.NetworkSpeedView
func (*DeviceBox) GetNetworkSpeedView ¶ added in v1.3.0
func (box *DeviceBox) GetNetworkSpeedView() tool.NetworkSpeedView
func (*DeviceBox) GetOtherDelayPing ¶ added in v1.3.0
func (*DeviceBox) GetSubBoxByP2P ¶ added in v1.3.3
GetSubBoxByP2P tcp to p2p It's very difficult, Do not use. If you need p2p, please use GetSubBoxByUP2P
func (*DeviceBox) GetSubBoxBySubType ¶ added in v1.3.7
func (*DeviceBox) GetSubBoxBySubTypeMix ¶ added in v1.3.7
func (*DeviceBox) GetSubBoxByUP2P ¶ added in v1.3.6
GetSubBoxByUP2P udp to kcp
func (*DeviceBox) GetSubBoxFromSid ¶ added in v1.3.8
func (*DeviceBox) IsAnonymity ¶ added in v1.3.8
func (*DeviceBox) ListenSubBox ¶ added in v1.3.0
func (*DeviceBox) ListenSubBoxOnce ¶ added in v1.3.5
func (*DeviceBox) SetDeadline ¶ added in v1.3.0
func (*DeviceBox) SetInfoLog ¶ added in v1.3.0
func (*DeviceBox) SetWarnLog ¶ added in v1.3.0
func (*DeviceBox) SubNumbers ¶ added in v1.3.8
func (*DeviceBox) SwitchListenUP2P ¶ added in v1.3.7
type LinkClient ¶ added in v1.3.5
type LinkClient struct {
// contains filtered or unexported fields
}
func LinkOtherConn ¶ added in v1.3.5
func LinkOtherConn(req LinkConnReq) (*LinkClient, error)
func (*LinkClient) Close ¶ added in v1.3.5
func (lc *LinkClient) Close(err error) error
func (*LinkClient) CopyLocalAddr ¶ added in v1.3.5
func (lc *LinkClient) CopyLocalAddr() net.Addr
func (*LinkClient) CopyRemoteAddr ¶ added in v1.3.5
func (lc *LinkClient) CopyRemoteAddr() net.Addr
func (*LinkClient) LinkLocalAddr ¶ added in v1.3.5
func (lc *LinkClient) LinkLocalAddr() net.Addr
func (*LinkClient) LinkRemoteAddr ¶ added in v1.3.5
func (lc *LinkClient) LinkRemoteAddr() net.Addr
func (*LinkClient) LocalAddr ¶ added in v1.3.5
func (lc *LinkClient) LocalAddr() net.Addr
func (*LinkClient) RemoteAddr ¶ added in v1.3.5
func (lc *LinkClient) RemoteAddr() net.Addr
func (*LinkClient) SetCopyDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetCopyDeadline(t time.Time) error
func (*LinkClient) SetCopyReadDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetCopyReadDeadline(t time.Time) error
func (*LinkClient) SetCopyWriteDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetCopyWriteDeadline(t time.Time) error
func (*LinkClient) SetDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetDeadline(t time.Time) error
func (*LinkClient) SetLinkDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetLinkDeadline(t time.Time) error
func (*LinkClient) SetLinkReadDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetLinkReadDeadline(t time.Time) error
func (*LinkClient) SetLinkWriteDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetLinkWriteDeadline(t time.Time) error
func (*LinkClient) SetReadDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetReadDeadline(t time.Time) error
func (*LinkClient) SetWriteDeadline ¶ added in v1.3.5
func (lc *LinkClient) SetWriteDeadline(t time.Time) error
func (*LinkClient) Wait ¶ added in v1.3.5
func (lc *LinkClient) Wait() error
func (*LinkClient) WriteToLinkConn ¶ added in v1.3.5
func (lc *LinkClient) WriteToLinkConn(b []byte) error
type LinkClientRW ¶ added in v1.3.5
type LinkClientRW struct {
// contains filtered or unexported fields
}
type LinkConnReq ¶ added in v1.3.5
type SubBox ¶ added in v1.3.0
type SubBox struct {
// contains filtered or unexported fields
}
func (*SubBox) GetAllNetworkSpeedView ¶ added in v1.3.0
func (sub *SubBox) GetAllNetworkSpeedView() tool.NetworkSpeedView
func (*SubBox) GetLocalIntranetAddr ¶ added in v1.3.3
func (*SubBox) GetLocalName ¶ added in v1.3.0
func (*SubBox) GetLocalPublicAddr ¶ added in v1.3.3
func (*SubBox) GetNetworkSpeedView ¶ added in v1.3.0
func (sub *SubBox) GetNetworkSpeedView() tool.NetworkSpeedView
func (*SubBox) GetRemoteIntranetAddr ¶ added in v1.3.3
func (*SubBox) GetRemoteName ¶ added in v1.3.0
func (*SubBox) GetRemotePublicAddr ¶ added in v1.3.3
func (*SubBox) ReadCMsgCb ¶ added in v1.3.1
func (*SubBox) RemoteAddr ¶ added in v1.3.0
func (*SubBox) SetDeadlineDuration ¶ added in v1.3.0
func (*SubBox) SetDebugLog ¶ added in v1.3.1
func (*SubBox) SetInfoLog ¶ added in v1.3.0
func (*SubBox) SetReadDeadline ¶ added in v1.3.0
func (*SubBox) SetWarnLog ¶ added in v1.3.0
func (*SubBox) SetWriteDeadline ¶ added in v1.3.0
func (*SubBox) WriteQueueBytes ¶ added in v1.3.1
Click to show internal directories.
Click to hide internal directories.