package
0.0.0-20200603072256-a58a776cfee9
Repository: https://github.com/hikaricai/p2p_tun.git
Documentation: pkg.go.dev
# Functions
Dial connects to the remote address "raddr" on the network "udp" without encryption and FEC.
DialWithOptions connects to the remote address "raddr" on the network "udp" with packet encryption
'block' is the block encryption algorithm to encrypt packets.
Listen listens for incoming KCP packets addressed to the local address laddr on the network "udp",.
ListenWithOptions listens for incoming KCP packets addressed to the local address laddr on the network "udp" with packet encryption.
NewAESBlockCrypt https://en.wikipedia.org/wiki/Advanced_Encryption_Standard.
NewBlowfishBlockCrypt https://en.wikipedia.org/wiki/Blowfish_(cipher).
NewCast5BlockCrypt https://en.wikipedia.org/wiki/CAST-128.
NewConn establishes a session and talks KCP protocol over a packet connection.
NewKCP create a new kcp state machine
'conv' must be equal in the connection peers, or else data will be silently rejected.
NewNoneBlockCrypt does nothing but copying.
No description provided by the author
NewSalsa20BlockCrypt https://en.wikipedia.org/wiki/Salsa20.
NewSimpleXORBlockCrypt simple xor with key expanding.
NewSM4BlockCrypt https://github.com/tjfoc/gmsm/tree/master/sm4.
NewTEABlockCrypt https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm.
NewTripleDESBlockCrypt https://en.wikipedia.org/wiki/Triple_DES.
NewTwofishBlockCrypt https://en.wikipedia.org/wiki/Twofish.
NewXTEABlockCrypt https://en.wikipedia.org/wiki/XTEA.
ServeConn serves KCP protocol for a single packet connection.
# Constants
No description provided by the author
need to send IKCP_CMD_WASK.
need to send IKCP_CMD_WINS.
cmd: ack.
cmd: push data.
cmd: window probe (ask).
cmd: window size (tell).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
7 secs to probe window size.
up to 120 secs to probe window.
No description provided by the author
No description provided by the author
normal min rto.
no delay min rto.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DefaultSnmp is the global KCP connection statistics collector.
# Structs
KCP defines a single KCP connection.
No description provided by the author
Snmp defines network statistics indicator.
No description provided by the author
# Interfaces
BlockCrypt defines encryption/decryption methods for a given byte slice.
Entropy defines a entropy source.