Documentation ¶
Index ¶
- 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) SetReadDeadline(t time.Time) error
- func (c *ObfsUDPHopClientPacketConn) SetWriteDeadline(t time.Time) error
- func (c *ObfsUDPHopClientPacketConn) WriteTo(b []byte, addr net.Addr) (int, error)
- type ObfsUDPPacketConn
- func (c *ObfsUDPPacketConn) Close() error
- func (c *ObfsUDPPacketConn) File() (f *os.File, err error)
- func (c *ObfsUDPPacketConn) LocalAddr() net.Addr
- func (c *ObfsUDPPacketConn) ReadFrom(p []byte) (int, net.Addr, error)
- func (c *ObfsUDPPacketConn) SetDeadline(t time.Time) error
- func (c *ObfsUDPPacketConn) SetReadBuffer(bytes int) error
- func (c *ObfsUDPPacketConn) SetReadDeadline(t time.Time) error
- func (c *ObfsUDPPacketConn) SetWriteBuffer(bytes int) error
- func (c *ObfsUDPPacketConn) SetWriteDeadline(t time.Time) error
- func (c *ObfsUDPPacketConn) SyscallConn() (syscall.RawConn, error)
- func (c *ObfsUDPPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObfsUDPHopClientPacketConn ¶ added in v1.3.0
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 NewObfsUDPHopClientPacketConn ¶ added in v1.3.0
func NewObfsUDPHopClientPacketConn(server string, hopInterval time.Duration, obfs obfs.Obfuscator) (*ObfsUDPHopClientPacketConn, net.Addr, error)
func (*ObfsUDPHopClientPacketConn) Close ¶ added in v1.3.0
func (c *ObfsUDPHopClientPacketConn) Close() error
func (*ObfsUDPHopClientPacketConn) LocalAddr ¶ added in v1.3.0
func (c *ObfsUDPHopClientPacketConn) LocalAddr() net.Addr
func (*ObfsUDPHopClientPacketConn) SetDeadline ¶ added in v1.3.0
func (c *ObfsUDPHopClientPacketConn) SetDeadline(t time.Time) error
func (*ObfsUDPHopClientPacketConn) SetReadDeadline ¶ added in v1.3.0
func (c *ObfsUDPHopClientPacketConn) SetReadDeadline(t time.Time) error
func (*ObfsUDPHopClientPacketConn) SetWriteDeadline ¶ added in v1.3.0
func (c *ObfsUDPHopClientPacketConn) SetWriteDeadline(t time.Time) error
type ObfsUDPPacketConn ¶
type ObfsUDPPacketConn struct {
// contains filtered or unexported fields
}
func NewObfsUDPConn ¶
func NewObfsUDPConn(orig *net.UDPConn, obfs obfs.Obfuscator) *ObfsUDPPacketConn
func (*ObfsUDPPacketConn) Close ¶
func (c *ObfsUDPPacketConn) Close() error
func (*ObfsUDPPacketConn) LocalAddr ¶
func (c *ObfsUDPPacketConn) LocalAddr() net.Addr
func (*ObfsUDPPacketConn) SetDeadline ¶
func (c *ObfsUDPPacketConn) SetDeadline(t time.Time) error
func (*ObfsUDPPacketConn) SetReadBuffer ¶
func (c *ObfsUDPPacketConn) SetReadBuffer(bytes int) error
func (*ObfsUDPPacketConn) SetReadDeadline ¶
func (c *ObfsUDPPacketConn) SetReadDeadline(t time.Time) error
func (*ObfsUDPPacketConn) SetWriteBuffer ¶
func (c *ObfsUDPPacketConn) SetWriteBuffer(bytes int) error
func (*ObfsUDPPacketConn) SetWriteDeadline ¶
func (c *ObfsUDPPacketConn) SetWriteDeadline(t time.Time) error
func (*ObfsUDPPacketConn) SyscallConn ¶
func (c *ObfsUDPPacketConn) SyscallConn() (syscall.RawConn, error)
Click to show internal directories.
Click to hide internal directories.