Documentation ¶
Index ¶
- Constants
- func CurrentMs() uint32
- type KCP
- func (k *KCP) Check(current uint32) uint32
- func (k *KCP) Free()
- func (k *KCP) Input(data []byte) int
- func (k *KCP) NoDelay(nodelay, interval, resend, nc int)
- func (k *KCP) Recv(data []byte) int
- func (k *KCP) Send(data []byte) int
- func (k *KCP) SetMtu(mtu int)
- func (k *KCP) Update(current uint32)
- func (k *KCP) WndSize(sndWnd, rcvWnd int)
- type KCPCallback
- type ObjectId
- type UserInfo
Constants ¶
View Source
const IkcpOVERHEAD = 28
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KCP ¶
type KCP struct {
// contains filtered or unexported fields
}
func NewKCPWithToken ¶
func NewKCPWithToken(conv, token uint32, callback KCPCallback) (*KCP, error)
type KCPCallback ¶
Click to show internal directories.
Click to hide internal directories.