Skip to content

Commit

Permalink
clean repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bennesp committed Dec 28, 2020
1 parent 89a9bed commit 3927102
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 22 deletions.
17 changes: 0 additions & 17 deletions .project

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
enet
====

golang enet protocol implementation
Modified version of enet to use in other projects

Original work from https://github.com/hzane/enet
4 changes: 2 additions & 2 deletions enetclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"os/signal"

"github.com/heartszhang/enet"
"github.com/bennesp/enet"
)

func main() {
Expand All @@ -25,7 +25,7 @@ func main() {

func ping_on_connect(host enet.Host, ep string, reason int) {
if reason == 0 {
host.Write(ep, 0, []byte("hello enet"))
host.Write(ep, 0, []byte("hello enet"), nil)
}
}
func ping_on_reliable(host enet.Host, ep string, chid uint8, data []byte) {
Expand Down
Binary file removed enetclient/enetclient.exe
Binary file not shown.
Binary file removed enetsvr/enetsvr.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions enetsvr/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"os/signal"

"github.com/heartszhang/enet"
"github.com/bennesp/enet"
)

func main() {
Expand Down Expand Up @@ -33,7 +33,7 @@ func install_signal() chan os.Signal {
}

func pong(host enet.Host, ep string, chanid uint8, payload []byte) {
host.Write(ep, chanid, payload)
host.Write(ep, chanid, payload, nil)

fmt.Printf("dat pong %v\n", ep)
}
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/bennesp/enet

go 1.15

0 comments on commit 3927102

Please sign in to comment.