Documentation
¶
Index ¶
- type ActiveTimeConn
- type ActiveTimeHyUDPConn
- type Config
- type HyPacketConn
- func (c *HyPacketConn) Close() error
- func (c *HyPacketConn) LocalAddr() net.Addr
- func (c *HyPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *HyPacketConn) SetDeadline(t time.Time) error
- func (c *HyPacketConn) SetReadDeadline(t time.Time) error
- func (c *HyPacketConn) SetWriteDeadline(t time.Time) error
- func (c *HyPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type HyUdpConnToNetConn
- func (c *HyUdpConnToNetConn) Close() error
- func (c *HyUdpConnToNetConn) LocalAddr() net.Addr
- func (c *HyUdpConnToNetConn) Read(p []byte) (n int, err error)
- func (c *HyUdpConnToNetConn) RemoteAddr() net.Addr
- func (c *HyUdpConnToNetConn) SetDeadline(t time.Time) error
- func (c *HyUdpConnToNetConn) SetReadDeadline(t time.Time) error
- func (c *HyUdpConnToNetConn) SetWriteDeadline(t time.Time) error
- func (c *HyUdpConnToNetConn) Write(p []byte) (int, error)
- type HysClient
- func (d *HysClient) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
- func (d *HysClient) HandlePacketConn(ctx context.Context, dst net.Destination, p udp.PacketReaderWriter) error
- func (d *HysClient) ListenPacket(ctx context.Context, dst net.Destination) (udp.UdpConn, error)
- func (d *HysClient) ProxyDial(ctx context.Context, dst net.Destination, initialData buf.MultiBuffer) (i.FlowConn, error)
- func (d *HysClient) Tag() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveTimeConn ¶
type ActiveTimeHyUDPConn ¶
type Config ¶
type Config struct {
Tag string
PacketListener i.PacketListener
HysteriaClientConfig *client.Config
SalamanderPassword string
Address net.Address
PortSelector i.PortSelector
IpResolverForNodeAddress i.IPResolver
DomainStrategy domain.DomainStrategy
IpResolverForTargetAddress i.IPResolver
RejectQuic bool
}
type HyPacketConn ¶
type HyPacketConn struct {
// contains filtered or unexported fields
}
Adapter for client.HyUDPConn to implement net.PacketConn
func (*HyPacketConn) LocalAddr ¶
func (c *HyPacketConn) LocalAddr() net.Addr
LocalAddr implements net.PacketConn
func (*HyPacketConn) SetDeadline ¶
func (c *HyPacketConn) SetDeadline(t time.Time) error
SetDeadline implements net.PacketConn
func (*HyPacketConn) SetReadDeadline ¶
func (c *HyPacketConn) SetReadDeadline(t time.Time) error
SetReadDeadline implements net.PacketConn
func (*HyPacketConn) SetWriteDeadline ¶
func (c *HyPacketConn) SetWriteDeadline(t time.Time) error
SetWriteDeadline implements net.PacketConn
type HyUdpConnToNetConn ¶
type HyUdpConnToNetConn struct {
// contains filtered or unexported fields
}
func (*HyUdpConnToNetConn) Close ¶
func (c *HyUdpConnToNetConn) Close() error
func (*HyUdpConnToNetConn) LocalAddr ¶
func (c *HyUdpConnToNetConn) LocalAddr() net.Addr
func (*HyUdpConnToNetConn) RemoteAddr ¶
func (c *HyUdpConnToNetConn) RemoteAddr() net.Addr
func (*HyUdpConnToNetConn) SetDeadline ¶
func (c *HyUdpConnToNetConn) SetDeadline(t time.Time) error
func (*HyUdpConnToNetConn) SetReadDeadline ¶
func (c *HyUdpConnToNetConn) SetReadDeadline(t time.Time) error
func (*HyUdpConnToNetConn) SetWriteDeadline ¶
func (c *HyUdpConnToNetConn) SetWriteDeadline(t time.Time) error
type HysClient ¶
type HysClient struct {
IpResolverForNodeAddress i.IPResolver
IpResolverForTargetAddress i.IPResolver
DomainStrategy domain.DomainStrategy
RejectQuic bool
sync.Mutex
// contains filtered or unexported fields
}
func (*HysClient) HandleFlow ¶
func (d *HysClient) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
func (*HysClient) HandlePacketConn ¶
func (d *HysClient) HandlePacketConn(ctx context.Context, dst net.Destination, p udp.PacketReaderWriter) error
func (*HysClient) ListenPacket ¶
Click to show internal directories.
Click to hide internal directories.