Documentation ¶
Index ¶
- func NewObfsUDPHopClientPacketConn(server string, serverPorts string, hopInterval time.Duration, ...) (net.PacketConn, error)
- type ObfsUDPConn
- func (c *ObfsUDPConn) Close() error
- func (c *ObfsUDPConn) LocalAddr() net.Addr
- func (c *ObfsUDPConn) ReadFrom(p []byte) (int, net.Addr, error)
- func (c *ObfsUDPConn) SetDeadline(t time.Time) error
- func (c *ObfsUDPConn) SetReadDeadline(t time.Time) error
- func (c *ObfsUDPConn) SetWriteDeadline(t time.Time) error
- func (c *ObfsUDPConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
- type ObfsUDPHopClientPacketConn
- func (c *ObfsUDPHopClientPacketConn) Close() error
- func (c *ObfsUDPHopClientPacketConn) LocalAddr() net.Addr
- func (c *ObfsUDPHopClientPacketConn) ReadFrom(b []byte) (int, net.Addr, error)
- func (c *ObfsUDPHopClientPacketConn) SetDeadline(t time.Time) error
- func (c *ObfsUDPHopClientPacketConn) SetReadBuffer(bytes int) error
- func (c *ObfsUDPHopClientPacketConn) SetReadDeadline(t time.Time) error
- func (c *ObfsUDPHopClientPacketConn) SetWriteBuffer(bytes int) error
- func (c *ObfsUDPHopClientPacketConn) SetWriteDeadline(t time.Time) error
- func (c *ObfsUDPHopClientPacketConn) WriteTo(b []byte, addr net.Addr) (int, error)
- type ObfsUDPHopClientPacketConnWithSyscall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObfsUDPHopClientPacketConn ¶
func NewObfsUDPHopClientPacketConn(server string, serverPorts string, hopInterval time.Duration, obfs obfs.Obfuscator, dialer utils.PacketDialer) (net.PacketConn, error)
Types ¶
type ObfsUDPConn ¶
type ObfsUDPConn struct {
// contains filtered or unexported fields
}
func NewObfsUDPConn ¶
func NewObfsUDPConn(orig net.PacketConn, obfs obfs.Obfuscator) *ObfsUDPConn
func (*ObfsUDPConn) Close ¶
func (c *ObfsUDPConn) Close() error
func (*ObfsUDPConn) LocalAddr ¶
func (c *ObfsUDPConn) LocalAddr() net.Addr
func (*ObfsUDPConn) SetDeadline ¶
func (c *ObfsUDPConn) SetDeadline(t time.Time) error
func (*ObfsUDPConn) SetReadDeadline ¶
func (c *ObfsUDPConn) SetReadDeadline(t time.Time) error
func (*ObfsUDPConn) SetWriteDeadline ¶
func (c *ObfsUDPConn) SetWriteDeadline(t time.Time) error
type ObfsUDPHopClientPacketConn ¶
type ObfsUDPHopClientPacketConn struct {
// contains filtered or unexported fields
}
ObfsUDPHopClientPacketConn is the UDP port-hopping packet connection for client side. It hops to a different local & server port every once in a while.
func (*ObfsUDPHopClientPacketConn) Close ¶
func (c *ObfsUDPHopClientPacketConn) Close() error
func (*ObfsUDPHopClientPacketConn) LocalAddr ¶
func (c *ObfsUDPHopClientPacketConn) LocalAddr() net.Addr
func (*ObfsUDPHopClientPacketConn) SetDeadline ¶
func (c *ObfsUDPHopClientPacketConn) SetDeadline(t time.Time) error
func (*ObfsUDPHopClientPacketConn) SetReadBuffer ¶
func (c *ObfsUDPHopClientPacketConn) SetReadBuffer(bytes int) error
func (*ObfsUDPHopClientPacketConn) SetReadDeadline ¶
func (c *ObfsUDPHopClientPacketConn) SetReadDeadline(t time.Time) error
func (*ObfsUDPHopClientPacketConn) SetWriteBuffer ¶
func (c *ObfsUDPHopClientPacketConn) SetWriteBuffer(bytes int) error
func (*ObfsUDPHopClientPacketConn) SetWriteDeadline ¶
func (c *ObfsUDPHopClientPacketConn) SetWriteDeadline(t time.Time) error
type ObfsUDPHopClientPacketConnWithSyscall ¶
type ObfsUDPHopClientPacketConnWithSyscall struct {
*ObfsUDPHopClientPacketConn
}
func (*ObfsUDPHopClientPacketConnWithSyscall) SyscallConn ¶
func (c *ObfsUDPHopClientPacketConnWithSyscall) SyscallConn() (syscall.RawConn, error)
Click to show internal directories.
Click to hide internal directories.