This commit is contained in:
talksik
2023-10-11 15:42:21 -07:00
parent 7e3163a3cd
commit 449fe5e1d2
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
module github.com/talksik/udp-ping-pong
go 1.23
go 1.21
+5 -1
View File
@@ -2,6 +2,7 @@ package main
import (
"fmt"
"log"
"net"
)
@@ -12,6 +13,10 @@ func main() {
panic(err)
}
go func() {
log.Println("SERVER | listening on port 5000")
}()
for {
// read
buf := make([]byte, 512)
@@ -29,5 +34,4 @@ func main() {
panic(err)
}
}
}