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 module github.com/talksik/udp-ping-pong
go 1.23 go 1.21
+5 -1
View File
@@ -2,6 +2,7 @@ package main
import ( import (
"fmt" "fmt"
"log"
"net" "net"
) )
@@ -12,6 +13,10 @@ func main() {
panic(err) panic(err)
} }
go func() {
log.Println("SERVER | listening on port 5000")
}()
for { for {
// read // read
buf := make([]byte, 512) buf := make([]byte, 512)
@@ -29,5 +34,4 @@ func main() {
panic(err) panic(err)
} }
} }
} }