package
Version:
v0.0.0-...-868bdbc
Opens a new window with list of versions in this module.
Published: Sep 8, 2020
License: AGPL-3.0
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 with its respective configurable options.
NewKCP instantiates a new instance of the KCP protocol.
Dial dials an address via. the KCP protocol, with optional Reed-Solomon message sharding.
Listen listens for incoming KCP connections on a specified port.
Layer represents a transport protocol layer.
type TCP struct {
WriteBufferSize int
ReadBufferSize int
NoDelay bool
}
TCP represents the TCP transport protocol alongside its respective configurable options.
NewTCP instantiates a new instance of the TCP transport protocol.
Dial dials an address via. the TCP protocol.
Listen listens for incoming TCP connections on a specified port.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.