Documentation ¶
Index ¶
- func DialWithOptions(raddr string, block kcp.BlockCrypt, dataShards, parityShards int, ...) (*kcp.UDPSession, error)
- func GetListenerByAddr(laddr net.Addr) *rawcon.RAWListener
- func GetMSSByAddr(laddr net.Addr, raddr net.Addr) int
- func ListenWithOptions(laddr string, block kcp.BlockCrypt, dataShards, parityShards int, ...) (*kcp.Listener, error)
- func SetDSCP(v int)
- func SetHost(v string)
- func SetIgnRST(v bool)
- func SetMixed(v bool)
- func SetNoHTTP(v bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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" with packet encryption
func GetListenerByAddr ¶
func GetListenerByAddr(laddr net.Addr) *rawcon.RAWListener
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" with packet encryption, dataShards, parityShards defines Reed-Solomon Erasure Coding parameters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.