Documentation
¶
Index ¶
- func DialRAW(raddr string, password string, mulconn int, udp bool, r *rawcon.Raw) (conn utils.UDPConn, err error)
- func DialWithOptions(raddr string, block kcp.BlockCrypt, dataShards, parityShards int, ...) (*kcp.UDPSession, error)
- func DialWithRawOptions(opt *RawOptions) (conn utils.UDPConn, err error)
- func GetListenerByAddr(laddr net.Addr) *rawcon.RAWListener
- func GetMSSByAddr(laddr net.Addr, raddr net.Addr) int
- func ListenRAW(laddr string, password string, usemul bool, udp bool, r *rawcon.Raw) (conn net.PacketConn, err error)
- func ListenWithOptions(laddr string, block kcp.BlockCrypt, dataShards, parityShards int, ...) (*kcp.Listener, error)
- func ListenWithRawOptions(opt *RawOptions) (conn net.PacketConn, err error)
- func SetDSCP(v int)
- func SetDummy(v bool)
- func SetHost(v string)
- func SetIgnRST(v bool)
- func SetMixed(v bool)
- func SetNoHTTP(v bool)
- func SetTLS(v bool)
- type RawOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialRAW ¶
func DialRAW(raddr string, password string, mulconn int, udp bool, r *rawcon.Raw) (conn utils.UDPConn, err error)
DialRAW connects to the remote address raddr on the network udp/fake-tcp mulconn is enabled if mulconn > 0
func DialWithOptions ¶
func DialWithOptions(raddr string, block kcp.BlockCrypt, dataShards, parityShards int, password string, mulconn int, udp bool) (*kcp.UDPSession, error)
DialWithOptions connects to the remote address "raddr" on the network "udp"/fake-tcp with packet encryption
func DialWithRawOptions ¶
func DialWithRawOptions(opt *RawOptions) (conn utils.UDPConn, err error)
func GetListenerByAddr ¶
func GetListenerByAddr(laddr net.Addr) *rawcon.RAWListener
func ListenRAW ¶
func ListenRAW(laddr string, password string, usemul bool, udp bool, r *rawcon.Raw) (conn net.PacketConn, err error)
ListenRAW listens for udp/fake-tcp
func ListenWithOptions ¶
func ListenWithOptions(laddr string, block kcp.BlockCrypt, dataShards, parityShards int, password string, usemul bool, udp bool) (*kcp.Listener, error)
ListenWithOptions listens for incoming KCP packets addressed to the local address laddr on the network "udp"/fake-tcp with packet encryption, dataShards, parityShards defines Reed-Solomon Erasure Coding parameters
func ListenWithRawOptions ¶
func ListenWithRawOptions(opt *RawOptions) (conn net.PacketConn, err error)
func SetDummy ¶
func SetDummy(v bool)
SetDummy if v is ture, the client will use dummy socket to inititate three-way handshake
Types ¶
Click to show internal directories.
Click to hide internal directories.