package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Aug 5, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type KCP struct {
DataShards int
ParityShards int
SendWindowSize int
RecvWindowSize int
}
KCP represents the KCP transport protocol alongside its respective configurable options.
NewKCP instantiates a new instance of the KCP transport protocol.
Dial dials an address via. the KCP protocol, with optional Reed-Solomon message sharding and
send/receive window size configurations.
Listen listens for incoming KCP connections on a specified port, with optional Reed-Solomon message sharding.
type TCP struct {
WriteBufferSize int
ReadBufferSize int
NoDelay bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.