Documentation ¶
Index ¶
- func CheckMemLoop(mb uint64)
- func CheckProcess(ctx context.Context, pidOld int)
- func RerunAfter(pid int) (err error)
- type Peer
- type SocksCli
- func (p *SocksCli) Close(ctx context.Context, in *pb.CloseReq) (out *pb.CloseRsp, err error)
- func (p *SocksCli) CopyLoop(ctx context.Context, cancel context.CancelFunc, rwc io.ReadWriteCloser, ...) (err error)
- func (p *SocksCli) GetPeer(ctx context.Context) (peer *Peer)
- func (p *SocksCli) RunConn(ctx context.Context, cancel context.CancelFunc, addr string, ...)
- func (p *SocksCli) RunLocal(ctx context.Context, cancel context.CancelFunc, socksAddr string)
- func (p *SocksCli) RunQuicConn(ctx context.Context, cancel context.CancelFunc, addr string, ...)
- type SocksProxy
- type SocksSvc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMemLoop ¶
func CheckMemLoop(mb uint64)
func CheckProcess ¶
func RerunAfter ¶
Types ¶
type SocksCli ¶
func (*SocksCli) CopyLoop ¶
func (p *SocksCli) CopyLoop(ctx context.Context, cancel context.CancelFunc, rwc io.ReadWriteCloser, peer *Peer, addr string) (err error)
func (*SocksCli) RunConn ¶
func (p *SocksCli) RunConn(ctx context.Context, cancel context.CancelFunc, addr string, tlsConfig *tls.Config)
创建备用connect,提前三次握手较少延时
func (*SocksCli) RunQuicConn ¶
func (p *SocksCli) RunQuicConn(ctx context.Context, cancel context.CancelFunc, addr string, tlsConfig *tls.Config)
创建备用connect,提前三次握手较少延时
type SocksProxy ¶
func NewSocksProxy ¶
func NewSocksProxy(ctx context.Context, cancel context.CancelFunc, remoteAddr, svcAddr, name string, tlsConfig *tls.Config, peerFrom rpc.Peer, rwc io.ReadWriteCloser) (p *SocksProxy)
Click to show internal directories.
Click to hide internal directories.