kcp

package
v0.6.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKCPDialer

func NewKCPDialer(s string, dialer proxy.Dialer) (proxy.Dialer, error)

NewKCPDialer returns a kcp proxy dialer

func NewKCPServer

func NewKCPServer(s string, dialer proxy.Dialer) (proxy.Server, error)

NewKCPServer returns a kcp proxy server

Types

type KCP

type KCP struct {
	// contains filtered or unexported fields
}

KCP struct

func NewKCP

func NewKCP(s string, dialer proxy.Dialer) (*KCP, error)

NewKCP returns a kcp proxy struct

func (*KCP) Addr

func (s *KCP) Addr() string

Addr returns forwarder's address

func (*KCP) Dial

func (s *KCP) Dial(network, addr string) (net.Conn, error)

Dial connects to the address addr on the network net via the proxy

func (*KCP) DialUDP

func (s *KCP) DialUDP(network, addr string) (net.PacketConn, net.Addr, error)

DialUDP connects to the given address via the proxy

func (*KCP) ListenAndServe

func (s *KCP) ListenAndServe()

ListenAndServe .

func (*KCP) NextDialer

func (s *KCP) NextDialer(dstAddr string) proxy.Dialer

NextDialer returns the next dialer

func (*KCP) Serve

func (s *KCP) Serve(c net.Conn)

Serve serves requests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL