Skip to content

Commit

Permalink
transport: dropped TCP & RakNet support and improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldogedev committed Dec 4, 2024
1 parent a67e8c1 commit 7a8520e
Show file tree
Hide file tree
Showing 11 changed files with 99 additions and 210 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/staticcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.0'
go-version: '1.23.3'

- name: Install Staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Spectrum introduces Discovery, a method for server determination when players jo
The `Processor` interface in Spectrum handles incoming and outgoing packets within sessions, enabling custom filtering and manipulation. This functionality supports implementing anti-cheat measures and other security features. Downstream servers are responsible for prefixing packets to indicate decoding necessity, as per Spectrum protocol specifications.

## Why Spectrum?
- **Protocol Innovation**: Utilizes Spectral, TCP and QUIC for enhanced reliability and performance, unlike traditional proxies relying on RakNet and standard Minecraft protocol.
- **Protocol Innovation**: Utilizes [Spectral](https://github.com/cooldogedev/spectral) and [QUIC](https://datatracker.ietf.org/doc/html/rfc9000) for enhanced reliability and performance, unlike traditional proxies relying on RakNet and standard Minecraft protocol.

- **Efficient Packet Handling**: Maintains high throughput by bypassing unnecessary packet decoding, optimizing data transmission and reducing latency.

Expand Down
23 changes: 0 additions & 23 deletions example/transport/raknet.go

This file was deleted.

23 changes: 0 additions & 23 deletions example/transport/tcp.go

This file was deleted.

35 changes: 17 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
module github.com/cooldogedev/spectrum

go 1.23.0
go 1.23.3

require (
github.com/brentp/intintmap v0.0.0-20190211203843-30dc0ade9af9
github.com/cooldogedev/spectral v0.0.2
github.com/go-gl/mathgl v1.1.0
github.com/cooldogedev/spectral v0.0.3
github.com/go-gl/mathgl v1.2.0
github.com/golang/snappy v0.0.4
github.com/quic-go/quic-go v0.47.0
github.com/sandertv/gophertunnel v1.42.0
github.com/quic-go/quic-go v0.48.2
github.com/sandertv/gophertunnel v1.42.2
github.com/scylladb/go-set v1.0.2
)

require (
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/google/pprof v0.0.0-20241001023024-f4c0cfd0cf1d // indirect
github.com/google/pprof v0.0.0-20241203143554-1e3fdc7de467 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/muhammadmuzzammil1998/jsonc v1.0.0 // indirect
github.com/onsi/ginkgo/v2 v2.20.2 // indirect
github.com/onsi/ginkgo/v2 v2.22.0 // indirect
github.com/sandertv/go-raknet v1.14.2 // indirect
go.uber.org/mock v0.4.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/image v0.21.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/tools v0.25.0 // indirect
go.uber.org/mock v0.5.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.31.0 // indirect
golang.org/x/oauth2 v0.24.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.27.0 // indirect
)
Loading

0 comments on commit 7a8520e

Please sign in to comment.