Registry / networking / xtaci-kcp-go

xtaci-kcp-go

JSON →
library5.4.20+incompatiblegogounverified

A reliable-UDP library for Go, providing a smooth, resilient, ordered, error-checked stream over UDP packets.

go get github.com/xtaci/kcp-go
INSTALL
IMPORT
SIG · XTACI-KCP-GO
X
xtaci-kcp-go
networkinggov5.4.20+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kcp
github.com/xtaci/kcp-go

Start a KCP listener on port 8080.

package main import ( "fmt" "github.com/xtaci/kcp-go" ) func main() { listener, err := kcp.ListenWithOptions(":8080", nil, 0, 0) if err != nil { panic(err) } fmt.Println("Listening on :8080") _ = listener.Close() }
Debug
Known issues
gotchaIncompatible with Go modules due to +incompatible version tag; use v5.4.20+incompatible.
fix
Use `go get github.com/xtaci/kcp-go@v5.4.20+incompatible` or migrate to a newer major version.
affects: >=5.0.0
Upgrade
Version history
5.4.20+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
2
Resources
xtaci-kcp-go — go get xtaci-kcp-go · libregistry