Documentation ¶
Index ¶
- func Dial(addr string, cookie []byte) (conn *kcp.UDPSession, err error)
- type Listener
- type ObfsSocket
- func (os *ObfsSocket) Close() error
- func (os *ObfsSocket) LocalAddr() net.Addr
- func (os *ObfsSocket) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (os *ObfsSocket) SetDeadline(t time.Time) error
- func (os *ObfsSocket) SetReadDeadline(t time.Time) error
- func (os *ObfsSocket) SetWriteDeadline(t time.Time) error
- func (os *ObfsSocket) WriteTo(b []byte, addr net.Addr) (int, error)
- type Wrapper
- func (w *Wrapper) Close() error
- func (w *Wrapper) LocalAddr() net.Addr
- func (w *Wrapper) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (w *Wrapper) SetDeadline(t time.Time) error
- func (w *Wrapper) SetReadDeadline(t time.Time) error
- func (w *Wrapper) SetWriteDeadline(t time.Time) error
- func (w *Wrapper) WriteTo(b []byte, addr net.Addr) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener operates KCP over obfs. Standard caveats about KCP not having proper open and close signaling apply.
type ObfsSocket ¶
type ObfsSocket struct {
// contains filtered or unexported fields
}
ObfsSocket represents an obfuscated PacketConn.
func ObfsListen ¶
func ObfsListen(cookie []byte, wire net.PacketConn) *ObfsSocket
ObfsListen opens a new obfuscated PacketConn.
func (*ObfsSocket) Close ¶
func (os *ObfsSocket) Close() error
func (*ObfsSocket) LocalAddr ¶
func (os *ObfsSocket) LocalAddr() net.Addr
func (*ObfsSocket) SetDeadline ¶
func (os *ObfsSocket) SetDeadline(t time.Time) error
func (*ObfsSocket) SetReadDeadline ¶
func (os *ObfsSocket) SetReadDeadline(t time.Time) error
func (*ObfsSocket) SetWriteDeadline ¶
func (os *ObfsSocket) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.